summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-08 18:15:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-12 11:22:27 +0100
commit66d4822838e6a50c748f54cc854186fd3fcfbfe5 (patch)
tree75e0d7e6659b2c2ad0f73fae7890cada904e63a8 /common/Kconfig
parentadf6e47b69d8d8d5a18748afb830320704dee50b (diff)
downloadbarebox-66d4822838e6a50c748f54cc854186fd3fcfbfe5.tar.gz
barebox-66d4822838e6a50c748f54cc854186fd3fcfbfe5.tar.xz
RISC-V: add stacktrace support via frame pointer walking
Make debugging more convenient by implementing stack_dump() and changing exception handlers to print stack trace along with the register dump. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220108171524.587144-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index de4f26f3c2..60cc008f52 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1207,6 +1207,18 @@ config DEBUG_LL
platform *will not work*, so this option should not be enabled
for builds that are intended to be portable.
+config ARCH_WANT_FRAME_POINTERS
+ bool
+
+config FRAME_POINTER
+ bool "Compile barebox with frame pointers" if COMPILE_TEST
+ default y if ARCH_WANT_FRAME_POINTERS
+ help
+ Selected by platforms that expect frame pointer usage, e.g.
+ when stack unwinding is enabled. The resulting barebox image
+ will be slightly larger and slower, but it can give precise
+ debugging information when print stack traces.
+
choice
prompt "Kernel low-level debugging port"
depends on DEBUG_LL