commit | 088e68aff4873219708a42b600092bca9fb5b871 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri Nov 05 07:49:39 2010 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Nov 05 07:52:22 2010 +0100 |
tree | f48e47bbe6531647064a4f37386cb617254e4e9f | |
parent | 929d8870d22e970e9513f9f194e005857b7317e6 [diff] |
generate backtrace in msgb_abort() This helps us to debug where we encounter insufficient headroom...
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 @@ #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