summaryrefslogtreecommitdiffstats
path: root/Documentation/process/debugging/gdb-kernel-debugging.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/process/debugging/gdb-kernel-debugging.rst')
-rw-r--r--Documentation/process/debugging/gdb-kernel-debugging.rst9
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