Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Florian Fainelli and committed by
Jonathan Corbet
7f7f4685 d642acfd

+9
+9
Documentation/process/debugging/gdb-kernel-debugging.rst
··· 173 173 174 174 Detailed help can be obtained via "help <command-name>" for commands and "help 175 175 function <function-name>" for convenience functions. 176 + 177 + Debugging GDB scripts 178 + --------------------- 179 + 180 + GDB does not enable a full Python backtrace which can make debugging GDB 181 + scripts more difficult than necessary. The following will allow for printing a 182 + full backtrace of the python environment:: 183 + 184 + (gdb) set python print-stack full