debian: Switch to the 3.0(quilt) format to play with launchpad
[osmocom-bb.git] / src / panic.c
index 0c0a920..d445226 100644 (file)
@@ -20,7 +20,9 @@
  *
  */
 
-#include <osmocore/panic.h>
+#include <osmocom/gsm/gsm_utils.h>
+#include <osmocom/core/panic.h>
+#include <osmocom/core/backtrace.h>
 
 #include "../config.h"
 
@@ -36,6 +38,7 @@ static osmo_panic_handler_t osmo_panic_handler = (void*)0;
 static void osmo_panic_default(const char *fmt, va_list args)
 {
        vfprintf(stderr, fmt, args);
+       osmo_generate_backtrace();
        abort();
 }