summaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorHarald Welte2010-11-05 07:49:39 +0100
committerHarald Welte2010-11-05 07:52:22 +0100
commit088e68aff4873219708a42b600092bca9fb5b871 (patch)
treef48e47bbe6531647064a4f37386cb617254e4e9f /include/osmocore
parentChange msgb_abort() function in MSGB_ABORT argument with variable arguments (diff)
downloadlibosmocore-088e68aff4873219708a42b600092bca9fb5b871.tar.gz
libosmocore-088e68aff4873219708a42b600092bca9fb5b871.tar.xz
libosmocore-088e68aff4873219708a42b600092bca9fb5b871.zip
generate backtrace in msgb_abort()
This helps us to debug where we encounter insufficient headroom...
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/msgb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h
index af0dd1e..68f0de6 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