libspl: lift backtrace into a separate file

If it's going to be used directly by zdb/ztest, then it sort of doesn't
make sense to carry it with the assert code.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16181
This commit is contained in:
Rob Norris
2024-05-10 11:26:11 +10:00
committed by Brian Behlendorf
parent e7b451941b
commit 3974ef045e
12 changed files with 426 additions and 79 deletions
-2
View File
@@ -60,8 +60,6 @@ libspl_assert(const char *buf, const char *file, const char *func, int line)
return (0);
}
extern void libspl_dump_backtrace(void);
#ifdef verify
#undef verify
#endif