Brett Cannon | 6e7f582 | 2011-01-17 21:12:54 +0000 | [diff] [blame^] | 1 | gdb Support for Python |
| 2 | ====================== |
| 3 | |
| 4 | gdb 7 and later |
| 5 | --------------- |
| 6 | In gdb 7, support for extending gdb with Python was added. When CPython is |
| 7 | built you will notice a python-gdb.py file in the root directory of your |
| 8 | checkout. Read the module docstring for details on how to use the file to |
| 9 | enhance gdb for easier debugging of a CPython process. |
| 10 | |
| 11 | |
| 12 | gdb 6 and earlier |
| 13 | ----------------- |
| 14 | The file at ``Misc/gdbinit`` contains a gdb configuration file which provides |
| 15 | extra commands when working with a CPython process. To use the file, either |
| 16 | copy the commands to your personal gdb configuration file or symlink |
| 17 | ``~/.gdbinit`` to ``Misc/gdbinit``. |