[Concept,09/10] backtrace: doc: Mention the feature
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Add a short section about the backtrace feature to the sandbox docs.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
doc/arch/sandbox/sandbox.rst | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
@@ -616,6 +616,23 @@ Here is an example trace::
Hit any key to stop autoboot: 1
+Backtrace Support
+-----------------
+
+Sandbox supports printing a backtrace of the current call stack, which can be
+useful for debugging. The :doc:`backtrace <../../usage/cmd/backtrace>` command
+prints a backtrace showing function names, source files, and line numbers.
+
+This uses the libbacktrace library (bundled with GCC) to provide detailed symbol
+information, including for static functions.
+
+To use it, simply run::
+
+ => backtrace
+
+This command is enabled with ``CONFIG_CMD_BACKTRACE``.
+
+
Debugging the init sequence
---------------------------