mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
core/panic: call cpu_print_last_instruction before printing other messages
This commit is contained in:
parent
4b6626f8b2
commit
8aa04e82a0
@ -48,13 +48,13 @@ NORETURN void core_panic(core_panic_t crash_code, const char *message)
|
||||
if (crashed == 0) {
|
||||
/* print panic message to console (if possible) */
|
||||
crashed = 1;
|
||||
puts("*** RIOT kernel panic");
|
||||
puts(message);
|
||||
#ifndef NDEBUG
|
||||
if (crash_code == PANIC_ASSERT_FAIL) {
|
||||
cpu_print_last_instruction();
|
||||
}
|
||||
#endif
|
||||
puts("*** RIOT kernel panic");
|
||||
puts(message);
|
||||
#ifdef DEVELHELP
|
||||
#ifdef MODULE_PS
|
||||
ps();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user