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 | |
parent | 6b1b7b60166c5c38ca4a0c07b98f905b6061a0a9 (diff) | |
download | rockbox-b8b195a2967428b390def196471fcfb78d527a87.tar.gz rockbox-b8b195a2967428b390def196471fcfb78d527a87.zip |
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
-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) | |||
52 | 52 | ||
53 | for(int i = 0; i < count; i++) | 53 | for(int i = 0; i < count; i++) |
54 | { | 54 | { |
55 | lcd_putsf(0, (*line)++, " %s", buffer[i], strings[i]); | 55 | lcd_putsf(0, (*line)++, " %s", strings[i]); |
56 | lcd_update(); | 56 | lcd_update(); |
57 | } | 57 | } |
58 | 58 | ||