From 4e7b89599b8500cc948cfb963b6d902e4842b3e6 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Sat, 9 May 2015 18:28:57 +0200 Subject: [PATCH] core: print thread table on crash --- core/panic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/panic.c b/core/panic.c index 91afac6e4..b6110fe71 100644 --- a/core/panic.c +++ b/core/panic.c @@ -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");