[Python-checkins] devguide: Move Misc/README.gdb to here.

brett.cannon python-checkins at python.org
Thu Jan 20 20:33:44 CET 2011


brett.cannon pushed 3b967f73ecb7 to devguide:

http://hg.python.org/devguide/rev/3b967f73ecb7
changeset:   158:3b967f73ecb7
user:        Brett Cannon <brett at python.org>
date:        Thu Jan 20 11:32:35 2011 -0800
summary:
  Move Misc/README.gdb to here.

files:
  gdb.rst
  index.rst

diff --git a/gdb.rst b/gdb.rst
new file mode 100644
--- /dev/null
+++ b/gdb.rst
@@ -0,0 +1,19 @@
+.. _gdb:
+
+gdb Support for Python
+======================
+
+gdb 7 and later
+---------------
+In gdb 7, support for extending gdb with Python was added. When CPython is
+built you will notice a python-gdb.py file in the 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.
+
+
+gdb 6 and earlier
+-----------------
+The file at ``Misc/gdbinit`` contains a gdb configuration file which provides
+extra commands when working with a CPython process. To use the file, either
+copy the commands to your personal gdb configuration file or symlink
+``~/.gdbinit`` to ``Misc/gdbinit``.
diff --git a/index.rst b/index.rst
--- a/index.rst
+++ b/index.rst
@@ -24,6 +24,8 @@
    langchanges
 
    experts
+   emacs
+   gdb
    grammar
    compiler
 
@@ -84,6 +86,7 @@
     * `Daily snapshot <http://svn.python.org/snapshots/>`_
 * Tool support
     * :ref:`emacs`
+    * :ref:`gdb`
 * Help with ...
     * :ref:`grammar`
     * :ref:`compiler`

--
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list