diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-06 18:51:37 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-06 18:54:34 +0100 |
commit | b8b195a2967428b390def196471fcfb78d527a87 (patch) | |
tree | b1ea0fc3c855b1e9a3767fbe6d24103822d9fab9 /firmware | |
parent | 6b1b7b60166c5c38ca4a0c07b98f905b6061a0a9 (diff) |
Fix hosted glibc backtrace
According to backtrace(3) man page, the string returned from
backtrace_symbols() contains the return address so we shouldn't
need to print it ourselves.
Change-Id: Ia779207285c9ea0052b9aee3d84ee8380bf46d82
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/hosted/backtrace-glibc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/backtrace-glibc.c b/firmware/target/hosted/backtrace-glibc.c index 19becda38b..3a63499187 100644 --- a/firmware/target/hosted/backtrace-glibc.c +++ b/firmware/target/hosted/backtrace-glibc.c @@ -52,7 +52,7 @@ void rb_backtrace(int pc, int sp, unsigned *line) for(int i = 0; i < count; i++) { - lcd_putsf(0, (*line)++, " %s", buffer[i], strings[i]); + lcd_putsf(0, (*line)++, " %s", strings[i]); lcd_update(); } |