diff options
| author | Florian Fainelli <florian.fainelli@broadcom.com> | 2026-03-26 16:32:24 -0700 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-03-30 10:04:13 -0600 |
| commit | 7f7f468548cee80d221cbc77e639fe99e113ff99 (patch) | |
| tree | fce2fb7d6e52ad5d6e733c5e6f8ced0e04f52851 /Documentation/process/debugging/gdb-kernel-debugging.rst | |
| parent | d642acfd597e3ec37138f9a8f5a634845e3612fd (diff) | |
| download | linux-7f7f468548cee80d221cbc77e639fe99e113ff99.tar.gz linux-7f7f468548cee80d221cbc77e639fe99e113ff99.zip | |
Documentation: Provide hints on how to debug Python GDB scripts
By default GDB does not print a full stack of its integrated Python
interpreter, thus making the debugging of GDB scripts more painful than
it has to be.
Suggested-by: Radu Rendec <radu@rendec.net>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Radu Rendec <radu@rendec.net>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260326233226.2248817-1-florian.fainelli@broadcom.com>
Diffstat (limited to 'Documentation/process/debugging/gdb-kernel-debugging.rst')
| -rw-r--r-- | Documentation/process/debugging/gdb-kernel-debugging.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/process/debugging/gdb-kernel-debugging.rst b/Documentation/process/debugging/gdb-kernel-debugging.rst index 9475c759c722..53e225760a4d 100644 --- a/Documentation/process/debugging/gdb-kernel-debugging.rst +++ b/Documentation/process/debugging/gdb-kernel-debugging.rst @@ -173,3 +173,12 @@ this is just a snapshot of the initial version:: Detailed help can be obtained via "help <command-name>" for commands and "help function <function-name>" for convenience functions. + +Debugging GDB scripts +--------------------- + +GDB does not enable a full Python backtrace which can make debugging GDB +scripts more difficult than necessary. The following will allow for printing a +full backtrace of the python environment:: + + (gdb) set python print-stack full |
