From 088e68aff4873219708a42b600092bca9fb5b871 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 5 Nov 2010 07:49:39 +0100 Subject: generate backtrace in msgb_abort() This helps us to debug where we encounter insufficient headroom... --- include/osmocore/msgb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 +#include #define MSGB_ABORT(msg, fmt, args ...) do { \ + generate_backtrace(); \ osmo_panic("msgb(%p)" fmt, ## args); \ } while(0) #else -- cgit v1.2.3