core: print thread table on crash

dev/timer
Oleg Hahm 8 years ago
parent 3f2afcd596
commit 4e7b89599b

@ -28,6 +28,10 @@
#include "panic.h"
#include "arch/panic_arch.h"
#if DEVELHELP && defined MODULE_PS
#include "ps.h"
#endif
#define PANIC_STR_SIZE 80
/* "public" variables holding the crash data */
@ -51,6 +55,11 @@ NORETURN void core_panic(int crash_code, const char *message)
puts("******** SYSTEM FAILURE ********\n");
puts(message);
#if DEVELHELP
#ifdef MODULE_PS
ps();
puts("");
#endif
puts("******** RIOT HALTS HERE ********\n");
#else
puts("******** RIOT WILL REBOOT ********\n");

Loading…
Cancel
Save