summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-08-06 18:51:37 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-06 18:54:34 +0100
commitb8b195a2967428b390def196471fcfb78d527a87 (patch)
treeb1ea0fc3c855b1e9a3767fbe6d24103822d9fab9 /firmware/target
parent6b1b7b60166c5c38ca4a0c07b98f905b6061a0a9 (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/target')
-rw-r--r--firmware/target/hosted/backtrace-glibc.c2
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();
}