Skip to content

Commit d9da2b4

Browse files
authored
Restore printing exception context (#3850)
1 parent 0c1cc17 commit d9da2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp-backtrace/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ fn exception_handler(context: &arch::TrapFrame) -> ! {
158158
};
159159

160160
panic!(
161-
"Exception '{}' mepc=0x{:08x}, mtval=0x{:08x}",
162-
code, mepc, mtval
161+
"Exception '{}' mepc=0x{:08x}, mtval=0x{:08x}\n{:?}",
162+
code, mepc, mtval, context
163163
);
164164
}
165165
}

0 commit comments

Comments
 (0)