backtrace: doc: Mention the feature

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>
This commit is contained in:
Simon Glass
2025-11-28 06:42:11 -07:00
committed by Simon Glass
parent b174084ef9
commit eb711c45ce

View File

@@ -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
---------------------------