Move the generate backtrace call from MSGB_ABORT to osmo_panic handler
authorSylvain Munaut <tnt@246tNt.com>
Sat, 13 Nov 2010 21:47:47 +0000 (22:47 +0100)
committerSylvain Munaut <tnt@246tNt.com>
Sat, 13 Nov 2010 21:47:47 +0000 (22:47 +0100)
commit7f6615a37df0dadbe86fdfc980e0a8a15013a80e
treea292e5daa99c0a14f9bcce22b6024d5eb483d478
parentc91d17b3d5e11e5e5c08a60abb8a1d14e49480a2
Move the generate backtrace call from MSGB_ABORT to osmo_panic handler

This has two benefits:
 - All people calling osmo_panic() will have the backtrace
 - It makes the thing build in 'target' mode in osmocom-bb

And one downside:
 - The osmo_panic handler is now in the backtrace
(I can live with that :)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
include/osmocore/msgb.h
src/panic.c