mirror of https://gerrit.osmocom.org/libosmocore
generate backtrace in msgb_abort()
This helps us to debug where we encounter insufficient headroom...
This commit is contained in:
parent
929d8870d2
commit
088e68aff4
|
@ -62,7 +62,9 @@ extern void msgb_reset(struct msgb *m);
|
|||
|
||||
#ifdef MSGB_DEBUG
|
||||
#include <osmocore/panic.h>
|
||||
#include <osmocore/gsm_utils.h>
|
||||
#define MSGB_ABORT(msg, fmt, args ...) do { \
|
||||
generate_backtrace(); \
|
||||
osmo_panic("msgb(%p)" fmt, ## args); \
|
||||
} while(0)
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue