[Python-checkins] devguide: Add instruction how to activate python-gdb.py

georg.brandl python-checkins at python.org
Mon Nov 3 11:28:26 CET 2014

changeset:   723:4bf21e0cb078
user:        Georg Brandl <georg at python.org>
date:        Mon Nov 03 11:28:19 2014 +0100
  Add instruction how to activate python-gdb.py

  gdb.rst |  7 +++++++
  1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gdb.rst b/gdb.rst
--- a/gdb.rst
+++ b/gdb.rst
@@ -23,6 +23,13 @@
 root directory of your checkout. Read the module docstring for details on how
 to use the file to enhance gdb for easier debugging of a CPython process.
+To activate support, you must add the directory containing ``python-gdb.py``
+to GDB's "auto-load-safe-path".  Put this in your ``~/.gdbinit`` file::
+   add-auto-load-safe-path /path/to/checkout
+You can also add multiple paths, separated by ``:``.
 This is what a backtrace looks like (truncated) when this extension is

Repository URL: https://hg.python.org/devguide

More information about the Python-checkins mailing list