summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-08-06 21:52:11 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-11-09 02:32:39 +0100
commit74dd276fe16ecd3de46d866e631273f286fbf7f2 (patch)
treeb4994b665e575b4a2369398f95713496e3f639f6 /firmware/panic.c
parentb5fb9781a6f40d328f10e4c0d5cd818d9e22173a (diff)
downloadrockbox-74dd276fe16ecd3de46d866e631273f286fbf7f2.tar.gz
rockbox-74dd276fe16ecd3de46d866e631273f286fbf7f2.tar.bz2
rockbox-74dd276fe16ecd3de46d866e631273f286fbf7f2.zip
debug: Wrap rb_backtrace with HAVE_RB_BACKTRACE instead of CPU_ARM
Basically, preparation for a non-ARM backtrace support. Change-Id: Icfd09fbc65a98f859e2a19f8d1111827a262a969
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 7e7e43d609..90e727d5e4 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -114,7 +114,7 @@ void panicf( const char *fmt, ...)
}
}
-#if defined(CPU_ARM)
+#if defined(HAVE_RB_BACKTRACE)
rb_backtrace(pc, sp, &y);
#endif
#ifdef ROCKBOX_HAS_LOGF