backtrace, put pc and sp on their own lines

Change-Id: Ia5853c4f2d1b86dc1e2cd0882f5da27e4eba5724
This commit is contained in:
William Wilgus 2022-03-08 23:37:50 -05:00
parent a8b997e4e9
commit 01e76548c3

View file

@ -108,7 +108,8 @@ Boolean CliInvalidateW(const Int32 a)
void rb_backtrace(int pcAddr, int spAddr, unsigned *line) void rb_backtrace(int pcAddr, int spAddr, unsigned *line)
{ {
lcd_putsf(0, (*line)++, "pc:%08x sp:%08x", pcAddr, spAddr); lcd_putsf(0, (*line)++, "pc:%08x", pcAddr);
lcd_putsf(0, (*line)++, "sp:%08x", spAddr);
lcd_update(); lcd_update();
UnwindStart(pcAddr, spAddr, &cliCallbacks, (void *)line); UnwindStart(pcAddr, spAddr, &cliCallbacks, (void *)line);