diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-11-05 07:49:39 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-11-05 07:52:22 +0100 |
commit | 088e68aff4873219708a42b600092bca9fb5b871 (patch) | |
tree | f48e47bbe6531647064a4f37386cb617254e4e9f | |
parent | 929d8870d22e970e9513f9f194e005857b7317e6 (diff) |
generate backtrace in msgb_abort()
This helps us to debug where we encounter insufficient headroom...
-rw-r--r-- | include/osmocore/msgb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h index af0dd1ed..68f0de6a 100644 --- a/include/osmocore/msgb.h +++ b/include/osmocore/msgb.h @@ -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 |