From b8b195a2967428b390def196471fcfb78d527a87 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Fri, 6 Aug 2021 18:51:37 +0100 Subject: 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 --- firmware/target/hosted/backtrace-glibc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3