You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1707 lines
56 KiB

Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79548 | martin.v.loewis | 2010-04-01 02:40:51 -0500 (Thu, 01 Apr 2010) | 3 lines Issue #8032: For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python. ........ r79557 | antoine.pitrou | 2010-04-01 12:56:57 -0500 (Thu, 01 Apr 2010) | 5 lines Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked as a regular test by regrtest.py, and fails. ........ r79616 | mark.dickinson | 2010-04-02 15:22:21 -0500 (Fri, 02 Apr 2010) | 1 line Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers. ........ r79617 | mark.dickinson | 2010-04-02 15:34:26 -0500 (Fri, 02 Apr 2010) | 1 line Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile. ........ r79716 | martin.v.loewis | 2010-04-03 13:54:07 -0500 (Sat, 03 Apr 2010) | 2 lines Don't install python-gdb.py as an executable. ........ r79778 | r.david.murray | 2010-04-04 20:34:50 -0500 (Sun, 04 Apr 2010) | 3 lines Issue 8287: try to fix the gdb-python install errors on Solaris and FreeBSD. Patch by Dave Malcolm. ........ r79795 | ronald.oussoren | 2010-04-05 06:21:21 -0500 (Mon, 05 Apr 2010) | 7 lines Ensure that the gdb hooks can be installed when srcdir != builddir. Without this patch it is no longer possible to build python when you don't run configure from the root of the source tree. ........ r79803 | r.david.murray | 2010-04-05 11:28:49 -0500 (Mon, 05 Apr 2010) | 3 lines Issue 8316: make test_gdb robust in the face of differing terminal widths. Patch by Dave Malcolm. ........ r79896 | martin.v.loewis | 2010-04-07 14:11:32 -0500 (Wed, 07 Apr 2010) | 2 lines Issue #8337: Disable the remaining test also for now. ........
16 years ago
  1. #!/usr/bin/python
  2. '''
  3. From gdb 7 onwards, gdb's build can be configured --with-python, allowing gdb
  4. to be extended with Python code e.g. for library-specific data visualizations,
  5. such as for the C++ STL types. Documentation on this API can be seen at:
  6. http://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html
  7. This python module deals with the case when the process being debugged (the
  8. "inferior process" in gdb parlance) is itself python, or more specifically,
  9. linked against libpython. In this situation, almost every item of data is a
  10. (PyObject*), and having the debugger merely print their addresses is not very
  11. enlightening.
  12. This module embeds knowledge about the implementation details of libpython so
  13. that we can emit useful visualizations e.g. a string, a list, a dict, a frame
  14. giving file/line information and the state of local variables
  15. In particular, given a gdb.Value corresponding to a PyObject* in the inferior
  16. process, we can generate a "proxy value" within the gdb process. For example,
  17. given a PyObject* in the inferior process that is in fact a PyListObject*
  18. holding three PyObject* that turn out to be PyBytesObject* instances, we can
  19. generate a proxy value within the gdb process that is a list of bytes
  20. instances:
  21. [b"foo", b"bar", b"baz"]
  22. Doing so can be expensive for complicated graphs of objects, and could take
  23. some time, so we also have a "write_repr" method that writes a representation
  24. of the data to a file-like object. This allows us to stop the traversal by
  25. having the file-like object raise an exception if it gets too much data.
  26. With both "proxyval" and "write_repr" we keep track of the set of all addresses
  27. visited so far in the traversal, to avoid infinite recursion due to cycles in
  28. the graph of object references.
  29. We try to defer gdb.lookup_type() invocations for python types until as late as
  30. possible: for a dynamically linked python binary, when the process starts in
  31. the debugger, the libpython.so hasn't been dynamically loaded yet, so none of
  32. the type names are known to the debugger
  33. The module also extends gdb with some python-specific commands.
  34. '''
  35. from __future__ import with_statement
  36. import gdb
  37. import locale
  38. import sys
  39. # Look up the gdb.Type for some standard types:
  40. _type_char_ptr = gdb.lookup_type('char').pointer() # char*
  41. _type_unsigned_char_ptr = gdb.lookup_type('unsigned char').pointer() # unsigned char*
  42. _type_void_ptr = gdb.lookup_type('void').pointer() # void*
  43. _type_unsigned_short_ptr = gdb.lookup_type('unsigned short').pointer()
  44. _type_unsigned_int_ptr = gdb.lookup_type('unsigned int').pointer()
  45. # value computed later, see PyUnicodeObjectPtr.proxy()
  46. _is_pep393 = None
  47. SIZEOF_VOID_P = _type_void_ptr.sizeof
  48. Py_TPFLAGS_HEAPTYPE = (1L << 9)
  49. Py_TPFLAGS_LONG_SUBCLASS = (1L << 24)
  50. Py_TPFLAGS_LIST_SUBCLASS = (1L << 25)
  51. Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26)
  52. Py_TPFLAGS_BYTES_SUBCLASS = (1L << 27)
  53. Py_TPFLAGS_UNICODE_SUBCLASS = (1L << 28)
  54. Py_TPFLAGS_DICT_SUBCLASS = (1L << 29)
  55. Py_TPFLAGS_BASE_EXC_SUBCLASS = (1L << 30)
  56. Py_TPFLAGS_TYPE_SUBCLASS = (1L << 31)
  57. MAX_OUTPUT_LEN=1024
  58. hexdigits = "0123456789abcdef"
  59. ENCODING = locale.getpreferredencoding()
  60. class NullPyObjectPtr(RuntimeError):
  61. pass
  62. def safety_limit(val):
  63. # Given a integer value from the process being debugged, limit it to some
  64. # safety threshold so that arbitrary breakage within said process doesn't
  65. # break the gdb process too much (e.g. sizes of iterations, sizes of lists)
  66. return min(val, 1000)
  67. def safe_range(val):
  68. # As per range, but don't trust the value too much: cap it to a safety
  69. # threshold in case the data was corrupted
  70. return xrange(safety_limit(val))
  71. def write_unicode(file, text):
  72. # Write a byte or unicode string to file. Unicode strings are encoded to
  73. # ENCODING encoding with 'backslashreplace' error handler to avoid
  74. # UnicodeEncodeError.
  75. if isinstance(text, unicode):
  76. text = text.encode(ENCODING, 'backslashreplace')
  77. file.write(text)
  78. def os_fsencode(filename):
  79. if not isinstance(filename, unicode):
  80. return filename
  81. encoding = sys.getfilesystemencoding()
  82. if encoding == 'mbcs':
  83. # mbcs doesn't support surrogateescape
  84. return filename.encode(encoding)
  85. encoded = []
  86. for char in filename:
  87. # surrogateescape error handler
  88. if 0xDC80 <= ord(char) <= 0xDCFF:
  89. byte = chr(ord(char) - 0xDC00)
  90. else:
  91. byte = char.encode(encoding)
  92. encoded.append(byte)
  93. return ''.join(encoded)
  94. class StringTruncated(RuntimeError):
  95. pass
  96. class TruncatedStringIO(object):
  97. '''Similar to cStringIO, but can truncate the output by raising a
  98. StringTruncated exception'''
  99. def __init__(self, maxlen=None):
  100. self._val = ''
  101. self.maxlen = maxlen
  102. def write(self, data):
  103. if self.maxlen:
  104. if len(data) + len(self._val) > self.maxlen:
  105. # Truncation:
  106. self._val += data[0:self.maxlen - len(self._val)]
  107. raise StringTruncated()
  108. self._val += data
  109. def getvalue(self):
  110. return self._val
  111. class PyObjectPtr(object):
  112. """
  113. Class wrapping a gdb.Value that's a either a (PyObject*) within the
  114. inferior process, or some subclass pointer e.g. (PyBytesObject*)
  115. There will be a subclass for every refined PyObject type that we care
  116. about.
  117. Note that at every stage the underlying pointer could be NULL, point
  118. to corrupt data, etc; this is the debugger, after all.
  119. """
  120. _typename = 'PyObject'
  121. def __init__(self, gdbval, cast_to=None):
  122. if cast_to:
  123. self._gdbval = gdbval.cast(cast_to)
  124. else:
  125. self._gdbval = gdbval
  126. def field(self, name):
  127. '''
  128. Get the gdb.Value for the given field within the PyObject, coping with
  129. some python 2 versus python 3 differences.
  130. Various libpython types are defined using the "PyObject_HEAD" and
  131. "PyObject_VAR_HEAD" macros.
  132. In Python 2, this these are defined so that "ob_type" and (for a var
  133. object) "ob_size" are fields of the type in question.
  134. In Python 3, this is defined as an embedded PyVarObject type thus:
  135. PyVarObject ob_base;
  136. so that the "ob_size" field is located insize the "ob_base" field, and
  137. the "ob_type" is most easily accessed by casting back to a (PyObject*).
  138. '''
  139. if self.is_null():
  140. raise NullPyObjectPtr(self)
  141. if name == 'ob_type':
  142. pyo_ptr = self._gdbval.cast(PyObjectPtr.get_gdb_type())
  143. return pyo_ptr.dereference()[name]
  144. if name == 'ob_size':
  145. pyo_ptr = self._gdbval.cast(PyVarObjectPtr.get_gdb_type())
  146. return pyo_ptr.dereference()[name]
  147. # General case: look it up inside the object:
  148. return self._gdbval.dereference()[name]
  149. def pyop_field(self, name):
  150. '''
  151. Get a PyObjectPtr for the given PyObject* field within this PyObject,
  152. coping with some python 2 versus python 3 differences.
  153. '''
  154. return PyObjectPtr.from_pyobject_ptr(self.field(name))
  155. def write_field_repr(self, name, out, visited):
  156. '''
  157. Extract the PyObject* field named "name", and write its representation
  158. to file-like object "out"
  159. '''
  160. field_obj = self.pyop_field(name)
  161. field_obj.write_repr(out, visited)
  162. def get_truncated_repr(self, maxlen):
  163. '''
  164. Get a repr-like string for the data, but truncate it at "maxlen" bytes
  165. (ending the object graph traversal as soon as you do)
  166. '''
  167. out = TruncatedStringIO(maxlen)
  168. try:
  169. self.write_repr(out, set())
  170. except StringTruncated:
  171. # Truncation occurred:
  172. return out.getvalue() + '...(truncated)'
  173. # No truncation occurred:
  174. return out.getvalue()
  175. def type(self):
  176. return PyTypeObjectPtr(self.field('ob_type'))
  177. def is_null(self):
  178. return 0 == long(self._gdbval)
  179. def is_optimized_out(self):
  180. '''
  181. Is the value of the underlying PyObject* visible to the debugger?
  182. This can vary with the precise version of the compiler used to build
  183. Python, and the precise version of gdb.
  184. See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=556975 with
  185. PyEval_EvalFrameEx's "f"
  186. '''
  187. return self._gdbval.is_optimized_out
  188. def safe_tp_name(self):
  189. try:
  190. return self.type().field('tp_name').string()
  191. except NullPyObjectPtr:
  192. # NULL tp_name?
  193. return 'unknown'
  194. except RuntimeError:
  195. # Can't even read the object at all?
  196. return 'unknown'
  197. def proxyval(self, visited):
  198. '''
  199. Scrape a value from the inferior process, and try to represent it
  200. within the gdb process, whilst (hopefully) avoiding crashes when
  201. the remote data is corrupt.
  202. Derived classes will override this.
  203. For example, a PyIntObject* with ob_ival 42 in the inferior process
  204. should result in an int(42) in this process.
  205. visited: a set of all gdb.Value pyobject pointers already visited
  206. whilst generating this value (to guard against infinite recursion when
  207. visiting object graphs with loops). Analogous to Py_ReprEnter and
  208. Py_ReprLeave
  209. '''
  210. class FakeRepr(object):
  211. """
  212. Class representing a non-descript PyObject* value in the inferior
  213. process for when we don't have a custom scraper, intended to have
  214. a sane repr().
  215. """
  216. def __init__(self, tp_name, address):
  217. self.tp_name = tp_name
  218. self.address = address
  219. def __repr__(self):
  220. # For the NULL pointer, we have no way of knowing a type, so
  221. # special-case it as per
  222. # http://bugs.python.org/issue8032#msg100882
  223. if self.address == 0:
  224. return '0x0'
  225. return '<%s at remote 0x%x>' % (self.tp_name, self.address)
  226. return FakeRepr(self.safe_tp_name(),
  227. long(self._gdbval))
  228. def write_repr(self, out, visited):
  229. '''
  230. Write a string representation of the value scraped from the inferior
  231. process to "out", a file-like object.
  232. '''
  233. # Default implementation: generate a proxy value and write its repr
  234. # However, this could involve a lot of work for complicated objects,
  235. # so for derived classes we specialize this
  236. return out.write(repr(self.proxyval(visited)))
  237. @classmethod
  238. def subclass_from_type(cls, t):
  239. '''
  240. Given a PyTypeObjectPtr instance wrapping a gdb.Value that's a
  241. (PyTypeObject*), determine the corresponding subclass of PyObjectPtr
  242. to use
  243. Ideally, we would look up the symbols for the global types, but that
  244. isn't working yet:
  245. (gdb) python print gdb.lookup_symbol('PyList_Type')[0].value
  246. Traceback (most recent call last):
  247. File "<string>", line 1, in <module>
  248. NotImplementedError: Symbol type not yet supported in Python scripts.
  249. Error while executing Python code.
  250. For now, we use tp_flags, after doing some string comparisons on the
  251. tp_name for some special-cases that don't seem to be visible through
  252. flags
  253. '''
  254. try:
  255. tp_name = t.field('tp_name').string()
  256. tp_flags = int(t.field('tp_flags'))
  257. except RuntimeError:
  258. # Handle any kind of error e.g. NULL ptrs by simply using the base
  259. # class
  260. return cls
  261. #print 'tp_flags = 0x%08x' % tp_flags
  262. #print 'tp_name = %r' % tp_name
  263. name_map = {'bool': PyBoolObjectPtr,
  264. 'classobj': PyClassObjectPtr,
  265. 'NoneType': PyNoneStructPtr,
  266. 'frame': PyFrameObjectPtr,
  267. 'set' : PySetObjectPtr,
  268. 'frozenset' : PySetObjectPtr,
  269. 'builtin_function_or_method' : PyCFunctionObjectPtr,
  270. }
  271. if tp_name in name_map:
  272. return name_map[tp_name]
  273. if tp_flags & Py_TPFLAGS_HEAPTYPE:
  274. return HeapTypeObjectPtr
  275. if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
  276. return PyLongObjectPtr
  277. if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
  278. return PyListObjectPtr
  279. if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS:
  280. return PyTupleObjectPtr
  281. if tp_flags & Py_TPFLAGS_BYTES_SUBCLASS:
  282. return PyBytesObjectPtr
  283. if tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS:
  284. return PyUnicodeObjectPtr
  285. if tp_flags & Py_TPFLAGS_DICT_SUBCLASS:
  286. return PyDictObjectPtr
  287. if tp_flags & Py_TPFLAGS_BASE_EXC_SUBCLASS:
  288. return PyBaseExceptionObjectPtr
  289. #if tp_flags & Py_TPFLAGS_TYPE_SUBCLASS:
  290. # return PyTypeObjectPtr
  291. # Use the base class:
  292. return cls
  293. @classmethod
  294. def from_pyobject_ptr(cls, gdbval):
  295. '''
  296. Try to locate the appropriate derived class dynamically, and cast
  297. the pointer accordingly.
  298. '''
  299. try:
  300. p = PyObjectPtr(gdbval)
  301. cls = cls.subclass_from_type(p.type())
  302. return cls(gdbval, cast_to=cls.get_gdb_type())
  303. except RuntimeError:
  304. # Handle any kind of error e.g. NULL ptrs by simply using the base
  305. # class
  306. pass
  307. return cls(gdbval)
  308. @classmethod
  309. def get_gdb_type(cls):
  310. return gdb.lookup_type(cls._typename).pointer()
  311. def as_address(self):
  312. return long(self._gdbval)
  313. class PyVarObjectPtr(PyObjectPtr):
  314. _typename = 'PyVarObject'
  315. class ProxyAlreadyVisited(object):
  316. '''
  317. Placeholder proxy to use when protecting against infinite recursion due to
  318. loops in the object graph.
  319. Analogous to the values emitted by the users of Py_ReprEnter and Py_ReprLeave
  320. '''
  321. def __init__(self, rep):
  322. self._rep = rep
  323. def __repr__(self):
  324. return self._rep
  325. def _write_instance_repr(out, visited, name, pyop_attrdict, address):
  326. '''Shared code for use by all classes:
  327. write a representation to file-like object "out"'''
  328. out.write('<')
  329. out.write(name)
  330. # Write dictionary of instance attributes:
  331. if isinstance(pyop_attrdict, PyDictObjectPtr):
  332. out.write('(')
  333. first = True
  334. for pyop_arg, pyop_val in pyop_attrdict.iteritems():
  335. if not first:
  336. out.write(', ')
  337. first = False
  338. out.write(pyop_arg.proxyval(visited))
  339. out.write('=')
  340. pyop_val.write_repr(out, visited)
  341. out.write(')')
  342. out.write(' at remote 0x%x>' % address)
  343. class InstanceProxy(object):
  344. def __init__(self, cl_name, attrdict, address):
  345. self.cl_name = cl_name
  346. self.attrdict = attrdict
  347. self.address = address
  348. def __repr__(self):
  349. if isinstance(self.attrdict, dict):
  350. kwargs = ', '.join(["%s=%r" % (arg, val)
  351. for arg, val in self.attrdict.iteritems()])
  352. return '<%s(%s) at remote 0x%x>' % (self.cl_name,
  353. kwargs, self.address)
  354. else:
  355. return '<%s at remote 0x%x>' % (self.cl_name,
  356. self.address)
  357. def _PyObject_VAR_SIZE(typeobj, nitems):
  358. if _PyObject_VAR_SIZE._type_size_t is None:
  359. _PyObject_VAR_SIZE._type_size_t = gdb.lookup_type('size_t')
  360. return ( ( typeobj.field('tp_basicsize') +
  361. nitems * typeobj.field('tp_itemsize') +
  362. (SIZEOF_VOID_P - 1)
  363. ) & ~(SIZEOF_VOID_P - 1)
  364. ).cast(_PyObject_VAR_SIZE._type_size_t)
  365. _PyObject_VAR_SIZE._type_size_t = None
  366. class HeapTypeObjectPtr(PyObjectPtr):
  367. _typename = 'PyObject'
  368. def get_attr_dict(self):
  369. '''
  370. Get the PyDictObject ptr representing the attribute dictionary
  371. (or None if there's a problem)
  372. '''
  373. try:
  374. typeobj = self.type()
  375. dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
  376. if dictoffset != 0:
  377. if dictoffset < 0:
  378. type_PyVarObject_ptr = gdb.lookup_type('PyVarObject').pointer()
  379. tsize = int_from_int(self._gdbval.cast(type_PyVarObject_ptr)['ob_size'])
  380. if tsize < 0:
  381. tsize = -tsize
  382. size = _PyObject_VAR_SIZE(typeobj, tsize)
  383. dictoffset += size
  384. assert dictoffset > 0
  385. assert dictoffset % SIZEOF_VOID_P == 0
  386. dictptr = self._gdbval.cast(_type_char_ptr) + dictoffset
  387. PyObjectPtrPtr = PyObjectPtr.get_gdb_type().pointer()
  388. dictptr = dictptr.cast(PyObjectPtrPtr)
  389. return PyObjectPtr.from_pyobject_ptr(dictptr.dereference())
  390. except RuntimeError:
  391. # Corrupt data somewhere; fail safe
  392. pass
  393. # Not found, or some kind of error:
  394. return None
  395. def proxyval(self, visited):
  396. '''
  397. Support for classes.
  398. Currently we just locate the dictionary using a transliteration to
  399. python of _PyObject_GetDictPtr, ignoring descriptors
  400. '''
  401. # Guard against infinite loops:
  402. if self.as_address() in visited:
  403. return ProxyAlreadyVisited('<...>')
  404. visited.add(self.as_address())
  405. pyop_attr_dict = self.get_attr_dict()
  406. if pyop_attr_dict:
  407. attr_dict = pyop_attr_dict.proxyval(visited)
  408. else:
  409. attr_dict = {}
  410. tp_name = self.safe_tp_name()
  411. # Class:
  412. return InstanceProxy(tp_name, attr_dict, long(self._gdbval))
  413. def write_repr(self, out, visited):
  414. # Guard against infinite loops:
  415. if self.as_address() in visited:
  416. out.write('<...>')
  417. return
  418. visited.add(self.as_address())
  419. pyop_attrdict = self.get_attr_dict()
  420. _write_instance_repr(out, visited,
  421. self.safe_tp_name(), pyop_attrdict, self.as_address())
  422. class ProxyException(Exception):
  423. def __init__(self, tp_name, args):
  424. self.tp_name = tp_name
  425. self.args = args
  426. def __repr__(self):
  427. return '%s%r' % (self.tp_name, self.args)
  428. class PyBaseExceptionObjectPtr(PyObjectPtr):
  429. """
  430. Class wrapping a gdb.Value that's a PyBaseExceptionObject* i.e. an exception
  431. within the process being debugged.
  432. """
  433. _typename = 'PyBaseExceptionObject'
  434. def proxyval(self, visited):
  435. # Guard against infinite loops:
  436. if self.as_address() in visited:
  437. return ProxyAlreadyVisited('(...)')
  438. visited.add(self.as_address())
  439. arg_proxy = self.pyop_field('args').proxyval(visited)
  440. return ProxyException(self.safe_tp_name(),
  441. arg_proxy)
  442. def write_repr(self, out, visited):
  443. # Guard against infinite loops:
  444. if self.as_address() in visited:
  445. out.write('(...)')
  446. return
  447. visited.add(self.as_address())
  448. out.write(self.safe_tp_name())
  449. self.write_field_repr('args', out, visited)
  450. class PyClassObjectPtr(PyObjectPtr):
  451. """
  452. Class wrapping a gdb.Value that's a PyClassObject* i.e. a <classobj>
  453. instance within the process being debugged.
  454. """
  455. _typename = 'PyClassObject'
  456. class BuiltInFunctionProxy(object):
  457. def __init__(self, ml_name):
  458. self.ml_name = ml_name
  459. def __repr__(self):
  460. return "<built-in function %s>" % self.ml_name
  461. class BuiltInMethodProxy(object):
  462. def __init__(self, ml_name, pyop_m_self):
  463. self.ml_name = ml_name
  464. self.pyop_m_self = pyop_m_self
  465. def __repr__(self):
  466. return ('<built-in method %s of %s object at remote 0x%x>'
  467. % (self.ml_name,
  468. self.pyop_m_self.safe_tp_name(),
  469. self.pyop_m_self.as_address())
  470. )
  471. class PyCFunctionObjectPtr(PyObjectPtr):
  472. """
  473. Class wrapping a gdb.Value that's a PyCFunctionObject*
  474. (see Include/methodobject.h and Objects/methodobject.c)
  475. """
  476. _typename = 'PyCFunctionObject'
  477. def proxyval(self, visited):
  478. m_ml = self.field('m_ml') # m_ml is a (PyMethodDef*)
  479. ml_name = m_ml['ml_name'].string()
  480. pyop_m_self = self.pyop_field('m_self')
  481. if pyop_m_self.is_null():
  482. return BuiltInFunctionProxy(ml_name)
  483. else:
  484. return BuiltInMethodProxy(ml_name, pyop_m_self)
  485. class PyCodeObjectPtr(PyObjectPtr):
  486. """
  487. Class wrapping a gdb.Value that's a PyCodeObject* i.e. a <code> instance
  488. within the process being debugged.
  489. """
  490. _typename = 'PyCodeObject'
  491. def addr2line(self, addrq):
  492. '''
  493. Get the line number for a given bytecode offset
  494. Analogous to PyCode_Addr2Line; translated from pseudocode in
  495. Objects/lnotab_notes.txt
  496. '''
  497. co_lnotab = self.pyop_field('co_lnotab').proxyval(set())
  498. # Initialize lineno to co_firstlineno as per PyCode_Addr2Line
  499. # not 0, as lnotab_notes.txt has it:
  500. lineno = int_from_int(self.field('co_firstlineno'))
  501. addr = 0
  502. for addr_incr, line_incr in zip(co_lnotab[::2], co_lnotab[1::2]):
  503. addr += ord(addr_incr)
  504. if addr > addrq:
  505. return lineno
  506. lineno += ord(line_incr)
  507. return lineno
  508. class PyDictObjectPtr(PyObjectPtr):
  509. """
  510. Class wrapping a gdb.Value that's a PyDictObject* i.e. a dict instance
  511. within the process being debugged.
  512. """
  513. _typename = 'PyDictObject'
  514. def iteritems(self):
  515. '''
  516. Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
  517. analagous to dict.iteritems()
  518. '''
  519. keys = self.field('ma_keys')
  520. values = self.field('ma_values')
  521. for i in safe_range(keys['dk_size']):
  522. ep = keys['dk_entries'].address + i
  523. if long(values):
  524. pyop_value = PyObjectPtr.from_pyobject_ptr(values[i])
  525. else:
  526. pyop_value = PyObjectPtr.from_pyobject_ptr(ep['me_value'])
  527. if not pyop_value.is_null():
  528. pyop_key = PyObjectPtr.from_pyobject_ptr(ep['me_key'])
  529. yield (pyop_key, pyop_value)
  530. def proxyval(self, visited):
  531. # Guard against infinite loops:
  532. if self.as_address() in visited:
  533. return ProxyAlreadyVisited('{...}')
  534. visited.add(self.as_address())
  535. result = {}
  536. for pyop_key, pyop_value in self.iteritems():
  537. proxy_key = pyop_key.proxyval(visited)
  538. proxy_value = pyop_value.proxyval(visited)
  539. result[proxy_key] = proxy_value
  540. return result
  541. def write_repr(self, out, visited):
  542. # Guard against infinite loops:
  543. if self.as_address() in visited:
  544. out.write('{...}')
  545. return
  546. visited.add(self.as_address())
  547. out.write('{')
  548. first = True
  549. for pyop_key, pyop_value in self.iteritems():
  550. if not first:
  551. out.write(', ')
  552. first = False
  553. pyop_key.write_repr(out, visited)
  554. out.write(': ')
  555. pyop_value.write_repr(out, visited)
  556. out.write('}')
  557. class PyListObjectPtr(PyObjectPtr):
  558. _typename = 'PyListObject'
  559. def __getitem__(self, i):
  560. # Get the gdb.Value for the (PyObject*) with the given index:
  561. field_ob_item = self.field('ob_item')
  562. return field_ob_item[i]
  563. def proxyval(self, visited):
  564. # Guard against infinite loops:
  565. if self.as_address() in visited:
  566. return ProxyAlreadyVisited('[...]')
  567. visited.add(self.as_address())
  568. result = [PyObjectPtr.from_pyobject_ptr(self[i]).proxyval(visited)
  569. for i in safe_range(int_from_int(self.field('ob_size')))]
  570. return result
  571. def write_repr(self, out, visited):
  572. # Guard against infinite loops:
  573. if self.as_address() in visited:
  574. out.write('[...]')
  575. return
  576. visited.add(self.as_address())
  577. out.write('[')
  578. for i in safe_range(int_from_int(self.field('ob_size'))):
  579. if i > 0:
  580. out.write(', ')
  581. element = PyObjectPtr.from_pyobject_ptr(self[i])
  582. element.write_repr(out, visited)
  583. out.write(']')
  584. class PyLongObjectPtr(PyObjectPtr):
  585. _typename = 'PyLongObject'
  586. def proxyval(self, visited):
  587. '''
  588. Python's Include/longobjrep.h has this declaration:
  589. struct _longobject {
  590. PyObject_VAR_HEAD
  591. digit ob_digit[1];
  592. };
  593. with this description:
  594. The absolute value of a number is equal to
  595. SUM(for i=0 through abs(ob_size)-1) ob_digit[i] * 2**(SHIFT*i)
  596. Negative numbers are represented with ob_size < 0;
  597. zero is represented by ob_size == 0.
  598. where SHIFT can be either:
  599. #define PyLong_SHIFT 30
  600. #define PyLong_SHIFT 15
  601. '''
  602. ob_size = long(self.field('ob_size'))
  603. if ob_size == 0:
  604. return 0L
  605. ob_digit = self.field('ob_digit')
  606. if gdb.lookup_type('digit').sizeof == 2:
  607. SHIFT = 15L
  608. else:
  609. SHIFT = 30L
  610. digits = [long(ob_digit[i]) * 2**(SHIFT*i)
  611. for i in safe_range(abs(ob_size))]
  612. result = sum(digits)
  613. if ob_size < 0:
  614. result = -result
  615. return result
  616. def write_repr(self, out, visited):
  617. # Write this out as a Python 3 int literal, i.e. without the "L" suffix
  618. proxy = self.proxyval(visited)
  619. out.write("%s" % proxy)
  620. class PyBoolObjectPtr(PyLongObjectPtr):
  621. """
  622. Class wrapping a gdb.Value that's a PyBoolObject* i.e. one of the two
  623. <bool> instances (Py_True/Py_False) within the process being debugged.
  624. """
  625. def proxyval(self, visited):
  626. if PyLongObjectPtr.proxyval(self, visited):
  627. return True
  628. else:
  629. return False
  630. class PyNoneStructPtr(PyObjectPtr):
  631. """
  632. Class wrapping a gdb.Value that's a PyObject* pointing to the
  633. singleton (we hope) _Py_NoneStruct with ob_type PyNone_Type
  634. """
  635. _typename = 'PyObject'
  636. def proxyval(self, visited):
  637. return None
  638. class PyFrameObjectPtr(PyObjectPtr):
  639. _typename = 'PyFrameObject'
  640. def __init__(self, gdbval, cast_to=None):
  641. PyObjectPtr.__init__(self, gdbval, cast_to)
  642. if not self.is_optimized_out():
  643. self.co = PyCodeObjectPtr.from_pyobject_ptr(self.field('f_code'))
  644. self.co_name = self.co.pyop_field('co_name')
  645. self.co_filename = self.co.pyop_field('co_filename')
  646. self.f_lineno = int_from_int(self.field('f_lineno'))
  647. self.f_lasti = int_from_int(self.field('f_lasti'))
  648. self.co_nlocals = int_from_int(self.co.field('co_nlocals'))
  649. self.co_varnames = PyTupleObjectPtr.from_pyobject_ptr(self.co.field('co_varnames'))
  650. def iter_locals(self):
  651. '''
  652. Yield a sequence of (name,value) pairs of PyObjectPtr instances, for
  653. the local variables of this frame
  654. '''
  655. if self.is_optimized_out():
  656. return
  657. f_localsplus = self.field('f_localsplus')
  658. for i in safe_range(self.co_nlocals):
  659. pyop_value = PyObjectPtr.from_pyobject_ptr(f_localsplus[i])
  660. if not pyop_value.is_null():
  661. pyop_name = PyObjectPtr.from_pyobject_ptr(self.co_varnames[i])
  662. yield (pyop_name, pyop_value)
  663. def iter_globals(self):
  664. '''
  665. Yield a sequence of (name,value) pairs of PyObjectPtr instances, for
  666. the global variables of this frame
  667. '''
  668. if self.is_optimized_out():
  669. return ()
  670. pyop_globals = self.pyop_field('f_globals')
  671. return pyop_globals.iteritems()
  672. def iter_builtins(self):
  673. '''
  674. Yield a sequence of (name,value) pairs of PyObjectPtr instances, for
  675. the builtin variables
  676. '''
  677. if self.is_optimized_out():
  678. return ()
  679. pyop_builtins = self.pyop_field('f_builtins')
  680. return pyop_builtins.iteritems()
  681. def get_var_by_name(self, name):
  682. '''
  683. Look for the named local variable, returning a (PyObjectPtr, scope) pair
  684. where scope is a string 'local', 'global', 'builtin'
  685. If not found, return (None, None)
  686. '''
  687. for pyop_name, pyop_value in self.iter_locals():
  688. if name == pyop_name.proxyval(set()):
  689. return pyop_value, 'local'
  690. for pyop_name, pyop_value in self.iter_globals():
  691. if name == pyop_name.proxyval(set()):
  692. return pyop_value, 'global'
  693. for pyop_name, pyop_value in self.iter_builtins():
  694. if name == pyop_name.proxyval(set()):
  695. return pyop_value, 'builtin'
  696. return None, None
  697. def filename(self):
  698. '''Get the path of the current Python source file, as a string'''
  699. if self.is_optimized_out():
  700. return '(frame information optimized out)'
  701. return self.co_filename.proxyval(set())
  702. def current_line_num(self):
  703. '''Get current line number as an integer (1-based)
  704. Translated from PyFrame_GetLineNumber and PyCode_Addr2Line
  705. See Objects/lnotab_notes.txt
  706. '''
  707. if self.is_optimized_out():
  708. return None
  709. f_trace = self.field('f_trace')
  710. if long(f_trace) != 0:
  711. # we have a non-NULL f_trace:
  712. return self.f_lineno
  713. else:
  714. #try:
  715. return self.co.addr2line(self.f_lasti)
  716. #except ValueError:
  717. # return self.f_lineno
  718. def current_line(self):
  719. '''Get the text of the current source line as a string, with a trailing
  720. newline character'''
  721. if self.is_optimized_out():
  722. return '(frame information optimized out)'
  723. filename = self.filename()
  724. try:
  725. f = open(os_fsencode(filename), 'r')
  726. except IOError:
  727. return None
  728. with f:
  729. all_lines = f.readlines()
  730. # Convert from 1-based current_line_num to 0-based list offset:
  731. return all_lines[self.current_line_num()-1]
  732. def write_repr(self, out, visited):
  733. if self.is_optimized_out():
  734. out.write('(frame information optimized out)')
  735. return
  736. out.write('Frame 0x%x, for file %s, line %i, in %s ('
  737. % (self.as_address(),
  738. self.co_filename.proxyval(visited),
  739. self.current_line_num(),
  740. self.co_name.proxyval(visited)))
  741. first = True
  742. for pyop_name, pyop_value in self.iter_locals():
  743. if not first:
  744. out.write(', ')
  745. first = False
  746. out.write(pyop_name.proxyval(visited))
  747. out.write('=')
  748. pyop_value.write_repr(out, visited)
  749. out.write(')')
  750. def print_traceback(self):
  751. if self.is_optimized_out():
  752. sys.stdout.write(' (frame information optimized out)\n')
  753. return
  754. visited = set()
  755. sys.stdout.write(' File "%s", line %i, in %s\n'
  756. % (self.co_filename.proxyval(visited),
  757. self.current_line_num(),
  758. self.co_name.proxyval(visited)))
  759. class PySetObjectPtr(PyObjectPtr):
  760. _typename = 'PySetObject'
  761. def proxyval(self, visited):
  762. # Guard against infinite loops:
  763. if self.as_address() in visited:
  764. return ProxyAlreadyVisited('%s(...)' % self.safe_tp_name())
  765. visited.add(self.as_address())
  766. members = []
  767. table = self.field('table')
  768. for i in safe_range(self.field('mask')+1):
  769. setentry = table[i]
  770. key = setentry['key']
  771. if key != 0:
  772. key_proxy = PyObjectPtr.from_pyobject_ptr(key).proxyval(visited)
  773. if key_proxy != '<dummy key>':
  774. members.append(key_proxy)
  775. if self.safe_tp_name() == 'frozenset':
  776. return frozenset(members)
  777. else:
  778. return set(members)
  779. def write_repr(self, out, visited):
  780. # Emulate Python 3's set_repr
  781. tp_name = self.safe_tp_name()
  782. # Guard against infinite loops:
  783. if self.as_address() in visited:
  784. out.write('(...)')
  785. return
  786. visited.add(self.as_address())
  787. # Python 3's set_repr special-cases the empty set:
  788. if not self.field('used'):
  789. out.write(tp_name)
  790. out.write('()')
  791. return
  792. # Python 3 uses {} for set literals:
  793. if tp_name != 'set':
  794. out.write(tp_name)
  795. out.write('(')
  796. out.write('{')
  797. first = True
  798. table = self.field('table')
  799. for i in safe_range(self.field('mask')+1):
  800. setentry = table[i]
  801. key = setentry['key']
  802. if key != 0:
  803. pyop_key = PyObjectPtr.from_pyobject_ptr(key)
  804. key_proxy = pyop_key.proxyval(visited) # FIXME!
  805. if key_proxy != '<dummy key>':
  806. if not first:
  807. out.write(', ')
  808. first = False
  809. pyop_key.write_repr(out, visited)
  810. out.write('}')
  811. if tp_name != 'set':
  812. out.write(')')
  813. class PyBytesObjectPtr(PyObjectPtr):
  814. _typename = 'PyBytesObject'
  815. def __str__(self):
  816. field_ob_size = self.field('ob_size')
  817. field_ob_sval = self.field('ob_sval')
  818. char_ptr = field_ob_sval.address.cast(_type_unsigned_char_ptr)
  819. return ''.join([chr(char_ptr[i]) for i in safe_range(field_ob_size)])
  820. def proxyval(self, visited):
  821. return str(self)
  822. def write_repr(self, out, visited):
  823. # Write this out as a Python 3 bytes literal, i.e. with a "b" prefix
  824. # Get a PyStringObject* within the Python 2 gdb process:
  825. proxy = self.proxyval(visited)
  826. # Transliteration of Python 3's Objects/bytesobject.c:PyBytes_Repr
  827. # to Python 2 code:
  828. quote = "'"
  829. if "'" in proxy and not '"' in proxy:
  830. quote = '"'
  831. out.write('b')
  832. out.write(quote)
  833. for byte in proxy:
  834. if byte == quote or byte == '\\':
  835. out.write('\\')
  836. out.write(byte)
  837. elif byte == '\t':
  838. out.write('\\t')
  839. elif byte == '\n':
  840. out.write('\\n')
  841. elif byte == '\r':
  842. out.write('\\r')
  843. elif byte < ' ' or ord(byte) >= 0x7f:
  844. out.write('\\x')
  845. out.write(hexdigits[(ord(byte) & 0xf0) >> 4])
  846. out.write(hexdigits[ord(byte) & 0xf])
  847. else:
  848. out.write(byte)
  849. out.write(quote)
  850. class PyTupleObjectPtr(PyObjectPtr):
  851. _typename = 'PyTupleObject'
  852. def __getitem__(self, i):
  853. # Get the gdb.Value for the (PyObject*) with the given index:
  854. field_ob_item = self.field('ob_item')
  855. return field_ob_item[i]
  856. def proxyval(self, visited):
  857. # Guard against infinite loops:
  858. if self.as_address() in visited:
  859. return ProxyAlreadyVisited('(...)')
  860. visited.add(self.as_address())
  861. result = tuple([PyObjectPtr.from_pyobject_ptr(self[i]).proxyval(visited)
  862. for i in safe_range(int_from_int(self.field('ob_size')))])
  863. return result
  864. def write_repr(self, out, visited):
  865. # Guard against infinite loops:
  866. if self.as_address() in visited:
  867. out.write('(...)')
  868. return
  869. visited.add(self.as_address())
  870. out.write('(')
  871. for i in safe_range(int_from_int(self.field('ob_size'))):
  872. if i > 0:
  873. out.write(', ')
  874. element = PyObjectPtr.from_pyobject_ptr(self[i])
  875. element.write_repr(out, visited)
  876. if self.field('ob_size') == 1:
  877. out.write(',)')
  878. else:
  879. out.write(')')
  880. class PyTypeObjectPtr(PyObjectPtr):
  881. _typename = 'PyTypeObject'
  882. def _unichr_is_printable(char):
  883. # Logic adapted from Python 3's Tools/unicode/makeunicodedata.py
  884. if char == u" ":
  885. return True
  886. import unicodedata
  887. return unicodedata.category(char) not in ("C", "Z")
  888. if sys.maxunicode >= 0x10000:
  889. _unichr = unichr
  890. else:
  891. # Needed for proper surrogate support if sizeof(Py_UNICODE) is 2 in gdb
  892. def _unichr(x):
  893. if x < 0x10000:
  894. return unichr(x)
  895. x -= 0x10000
  896. ch1 = 0xD800 | (x >> 10)
  897. ch2 = 0xDC00 | (x & 0x3FF)
  898. return unichr(ch1) + unichr(ch2)
  899. class PyUnicodeObjectPtr(PyObjectPtr):
  900. _typename = 'PyUnicodeObject'
  901. def char_width(self):
  902. _type_Py_UNICODE = gdb.lookup_type('Py_UNICODE')
  903. return _type_Py_UNICODE.sizeof
  904. def proxyval(self, visited):
  905. global _is_pep393
  906. if _is_pep393 is None:
  907. fields = gdb.lookup_type('PyUnicodeObject').target().fields()
  908. _is_pep393 = 'data' in [f.name for f in fields]
  909. if _is_pep393:
  910. # Python 3.3 and newer
  911. may_have_surrogates = False
  912. compact = self.field('_base')
  913. ascii = compact['_base']
  914. state = ascii['state']
  915. is_compact_ascii = (int(state['ascii']) and int(state['compact']))
  916. if not int(state['ready']):
  917. # string is not ready
  918. field_length = long(compact['wstr_length'])
  919. may_have_surrogates = True
  920. field_str = ascii['wstr']
  921. else:
  922. field_length = long(ascii['length'])
  923. if is_compact_ascii:
  924. field_str = ascii.address + 1
  925. elif int(state['compact']):
  926. field_str = compact.address + 1
  927. else:
  928. field_str = self.field('data')['any']
  929. repr_kind = int(state['kind'])
  930. if repr_kind == 1:
  931. field_str = field_str.cast(_type_unsigned_char_ptr)
  932. elif repr_kind == 2:
  933. field_str = field_str.cast(_type_unsigned_short_ptr)
  934. elif repr_kind == 4:
  935. field_str = field_str.cast(_type_unsigned_int_ptr)
  936. else:
  937. # Python 3.2 and earlier
  938. field_length = long(self.field('length'))
  939. field_str = self.field('str')
  940. may_have_surrogates = self.char_width() == 2
  941. # Gather a list of ints from the Py_UNICODE array; these are either
  942. # UCS-1, UCS-2 or UCS-4 code points:
  943. if not may_have_surrogates:
  944. Py_UNICODEs = [int(field_str[i]) for i in safe_range(field_length)]
  945. else:
  946. # A more elaborate routine if sizeof(Py_UNICODE) is 2 in the
  947. # inferior process: we must join surrogate pairs.
  948. Py_UNICODEs = []
  949. i = 0
  950. limit = safety_limit(field_length)
  951. while i < limit:
  952. ucs = int(field_str[i])
  953. i += 1
  954. if ucs < 0xD800 or ucs >= 0xDC00 or i == field_length:
  955. Py_UNICODEs.append(ucs)
  956. continue
  957. # This could be a surrogate pair.
  958. ucs2 = int(field_str[i])
  959. if ucs2 < 0xDC00 or ucs2 > 0xDFFF:
  960. continue
  961. code = (ucs & 0x03FF) << 10
  962. code |= ucs2 & 0x03FF
  963. code += 0x00010000
  964. Py_UNICODEs.append(code)
  965. i += 1
  966. # Convert the int code points to unicode characters, and generate a
  967. # local unicode instance.
  968. # This splits surrogate pairs if sizeof(Py_UNICODE) is 2 here (in gdb).
  969. result = u''.join([_unichr(ucs) for ucs in Py_UNICODEs])
  970. return result
  971. def write_repr(self, out, visited):
  972. # Write this out as a Python 3 str literal, i.e. without a "u" prefix
  973. # Get a PyUnicodeObject* within the Python 2 gdb process:
  974. proxy = self.proxyval(visited)
  975. # Transliteration of Python 3's Object/unicodeobject.c:unicode_repr
  976. # to Python 2:
  977. if "'" in proxy and '"' not in proxy:
  978. quote = '"'
  979. else:
  980. quote = "'"
  981. out.write(quote)
  982. i = 0
  983. while i < len(proxy):
  984. ch = proxy[i]
  985. i += 1
  986. # Escape quotes and backslashes
  987. if ch == quote or ch == '\\':
  988. out.write('\\')
  989. out.write(ch)
  990. # Map special whitespace to '\t', \n', '\r'
  991. elif ch == '\t':
  992. out.write('\\t')
  993. elif ch == '\n':
  994. out.write('\\n')
  995. elif ch == '\r':
  996. out.write('\\r')
  997. # Map non-printable US ASCII to '\xhh' */
  998. elif ch < ' ' or ch == 0x7F:
  999. out.write('\\x')
  1000. out.write(hexdigits[(ord(ch) >> 4) & 0x000F])
  1001. out.write(hexdigits[ord(ch) & 0x000F])
  1002. # Copy ASCII characters as-is
  1003. elif ord(ch) < 0x7F:
  1004. out.write(ch)
  1005. # Non-ASCII characters
  1006. else:
  1007. ucs = ch
  1008. ch2 = None
  1009. if sys.maxunicode < 0x10000:
  1010. # If sizeof(Py_UNICODE) is 2 here (in gdb), join
  1011. # surrogate pairs before calling _unichr_is_printable.
  1012. if (i < len(proxy)
  1013. and 0xD800 <= ord(ch) < 0xDC00 \
  1014. and 0xDC00 <= ord(proxy[i]) <= 0xDFFF):
  1015. ch2 = proxy[i]
  1016. ucs = ch + ch2
  1017. i += 1
  1018. # Unfortuately, Python 2's unicode type doesn't seem
  1019. # to expose the "isprintable" method
  1020. printable = _unichr_is_printable(ucs)
  1021. if printable:
  1022. try:
  1023. ucs.encode(ENCODING)
  1024. except UnicodeEncodeError:
  1025. printable = False
  1026. # Map Unicode whitespace and control characters
  1027. # (categories Z* and C* except ASCII space)
  1028. if not printable:
  1029. if ch2 is not None:
  1030. # Match Python 3's representation of non-printable
  1031. # wide characters.
  1032. code = (ord(ch) & 0x03FF) << 10
  1033. code |= ord(ch2) & 0x03FF
  1034. code += 0x00010000
  1035. else:
  1036. code = ord(ucs)
  1037. # Map 8-bit characters to '\\xhh'
  1038. if code <= 0xff:
  1039. out.write('\\x')
  1040. out.write(hexdigits[(code >> 4) & 0x000F])
  1041. out.write(hexdigits[code & 0x000F])
  1042. # Map 21-bit characters to '\U00xxxxxx'
  1043. elif code >= 0x10000:
  1044. out.write('\\U')
  1045. out.write(hexdigits[(code >> 28) & 0x0000000F])
  1046. out.write(hexdigits[(code >> 24) & 0x0000000F])
  1047. out.write(hexdigits[(code >> 20) & 0x0000000F])
  1048. out.write(hexdigits[(code >> 16) & 0x0000000F])
  1049. out.write(hexdigits[(code >> 12) & 0x0000000F])
  1050. out.write(hexdigits[(code >> 8) & 0x0000000F])
  1051. out.write(hexdigits[(code >> 4) & 0x0000000F])
  1052. out.write(hexdigits[code & 0x0000000F])
  1053. # Map 16-bit characters to '\uxxxx'
  1054. else:
  1055. out.write('\\u')
  1056. out.write(hexdigits[(code >> 12) & 0x000F])
  1057. out.write(hexdigits[(code >> 8) & 0x000F])
  1058. out.write(hexdigits[(code >> 4) & 0x000F])
  1059. out.write(hexdigits[code & 0x000F])
  1060. else:
  1061. # Copy characters as-is
  1062. out.write(ch)
  1063. if ch2 is not None:
  1064. out.write(ch2)
  1065. out.write(quote)
  1066. def int_from_int(gdbval):
  1067. return int(str(gdbval))
  1068. def stringify(val):
  1069. # TODO: repr() puts everything on one line; pformat can be nicer, but
  1070. # can lead to v.long results; this function isolates the choice
  1071. if True:
  1072. return repr(val)
  1073. else:
  1074. from pprint import pformat
  1075. return pformat(val)
  1076. class PyObjectPtrPrinter:
  1077. "Prints a (PyObject*)"
  1078. def __init__ (self, gdbval):
  1079. self.gdbval = gdbval
  1080. def to_string (self):
  1081. pyop = PyObjectPtr.from_pyobject_ptr(self.gdbval)
  1082. if True:
  1083. return pyop.get_truncated_repr(MAX_OUTPUT_LEN)
  1084. else:
  1085. # Generate full proxy value then stringify it.
  1086. # Doing so could be expensive
  1087. proxyval = pyop.proxyval(set())
  1088. return stringify(proxyval)
  1089. def pretty_printer_lookup(gdbval):
  1090. type = gdbval.type.unqualified()
  1091. if type.code == gdb.TYPE_CODE_PTR:
  1092. type = type.target().unqualified()
  1093. t = str(type)
  1094. if t in ("PyObject", "PyFrameObject", "PyUnicodeObject"):
  1095. return PyObjectPtrPrinter(gdbval)
  1096. """
  1097. During development, I've been manually invoking the code in this way:
  1098. (gdb) python
  1099. import sys
  1100. sys.path.append('/home/david/coding/python-gdb')
  1101. import libpython
  1102. end
  1103. then reloading it after each edit like this:
  1104. (gdb) python reload(libpython)
  1105. The following code should ensure that the prettyprinter is registered
  1106. if the code is autoloaded by gdb when visiting libpython.so, provided
  1107. that this python file is installed to the same path as the library (or its
  1108. .debug file) plus a "-gdb.py" suffix, e.g:
  1109. /usr/lib/libpython2.6.so.1.0-gdb.py
  1110. /usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug-gdb.py
  1111. """
  1112. def register (obj):
  1113. if obj == None:
  1114. obj = gdb
  1115. # Wire up the pretty-printer
  1116. obj.pretty_printers.append(pretty_printer_lookup)
  1117. register (gdb.current_objfile ())
  1118. # Unfortunately, the exact API exposed by the gdb module varies somewhat
  1119. # from build to build
  1120. # See http://bugs.python.org/issue8279?#msg102276
  1121. class Frame(object):
  1122. '''
  1123. Wrapper for gdb.Frame, adding various methods
  1124. '''
  1125. def __init__(self, gdbframe):
  1126. self._gdbframe = gdbframe
  1127. def older(self):
  1128. older = self._gdbframe.older()
  1129. if older:
  1130. return Frame(older)
  1131. else:
  1132. return None
  1133. def newer(self):
  1134. newer = self._gdbframe.newer()
  1135. if newer:
  1136. return Frame(newer)
  1137. else:
  1138. return None
  1139. def select(self):
  1140. '''If supported, select this frame and return True; return False if unsupported
  1141. Not all builds have a gdb.Frame.select method; seems to be present on Fedora 12
  1142. onwards, but absent on Ubuntu buildbot'''
  1143. if not hasattr(self._gdbframe, 'select'):
  1144. print ('Unable to select frame: '
  1145. 'this build of gdb does not expose a gdb.Frame.select method')
  1146. return False
  1147. self._gdbframe.select()
  1148. return True
  1149. def get_index(self):
  1150. '''Calculate index of frame, starting at 0 for the newest frame within
  1151. this thread'''
  1152. index = 0
  1153. # Go down until you reach the newest frame:
  1154. iter_frame = self
  1155. while iter_frame.newer():
  1156. index += 1
  1157. iter_frame = iter_frame.newer()
  1158. return index
  1159. def is_evalframeex(self):
  1160. '''Is this a PyEval_EvalFrameEx frame?'''
  1161. if self._gdbframe.name() == 'PyEval_EvalFrameEx':
  1162. '''
  1163. I believe we also need to filter on the inline
  1164. struct frame_id.inline_depth, only regarding frames with
  1165. an inline depth of 0 as actually being this function
  1166. So we reject those with type gdb.INLINE_FRAME
  1167. '''
  1168. if self._gdbframe.type() == gdb.NORMAL_FRAME:
  1169. # We have a PyEval_EvalFrameEx frame:
  1170. return True
  1171. return False
  1172. def get_pyop(self):
  1173. try:
  1174. f = self._gdbframe.read_var('f')
  1175. frame = PyFrameObjectPtr.from_pyobject_ptr(f)
  1176. if not frame.is_optimized_out():
  1177. return frame
  1178. # gdb is unable to get the "f" argument of PyEval_EvalFrameEx()
  1179. # because it was "optimized out". Try to get "f" from the frame
  1180. # of the caller, PyEval_EvalCodeEx().
  1181. orig_frame = frame
  1182. caller = self._gdbframe.older()
  1183. if caller:
  1184. f = caller.read_var('f')
  1185. frame = PyFrameObjectPtr.from_pyobject_ptr(f)
  1186. if not frame.is_optimized_out():
  1187. return frame
  1188. return orig_frame
  1189. except ValueError:
  1190. return None
  1191. @classmethod
  1192. def get_selected_frame(cls):
  1193. _gdbframe = gdb.selected_frame()
  1194. if _gdbframe:
  1195. return Frame(_gdbframe)
  1196. return None
  1197. @classmethod
  1198. def get_selected_python_frame(cls):
  1199. '''Try to obtain the Frame for the python code in the selected frame,
  1200. or None'''
  1201. frame = cls.get_selected_frame()
  1202. while frame:
  1203. if frame.is_evalframeex():
  1204. return frame
  1205. frame = frame.older()
  1206. # Not found:
  1207. return None
  1208. def print_summary(self):
  1209. if self.is_evalframeex():
  1210. pyop = self.get_pyop()
  1211. if pyop:
  1212. line = pyop.get_truncated_repr(MAX_OUTPUT_LEN)
  1213. write_unicode(sys.stdout, '#%i %s\n' % (self.get_index(), line))
  1214. if not pyop.is_optimized_out():
  1215. line = pyop.current_line()
  1216. if line is not None:
  1217. sys.stdout.write(' %s\n' % line.strip())
  1218. else:
  1219. sys.stdout.write('#%i (unable to read python frame information)\n' % self.get_index())
  1220. else:
  1221. sys.stdout.write('#%i\n' % self.get_index())
  1222. def print_traceback(self):
  1223. if self.is_evalframeex():
  1224. pyop = self.get_pyop()
  1225. if pyop:
  1226. pyop.print_traceback()
  1227. if not pyop.is_optimized_out():
  1228. line = pyop.current_line()
  1229. if line is not None:
  1230. sys.stdout.write(' %s\n' % line.strip())
  1231. else:
  1232. sys.stdout.write(' (unable to read python frame information)\n')
  1233. else:
  1234. sys.stdout.write(' (not a python frame)\n')
  1235. class PyList(gdb.Command):
  1236. '''List the current Python source code, if any
  1237. Use
  1238. py-list START
  1239. to list at a different line number within the python source.
  1240. Use
  1241. py-list START, END
  1242. to list a specific range of lines within the python source.
  1243. '''
  1244. def __init__(self):
  1245. gdb.Command.__init__ (self,
  1246. "py-list",
  1247. gdb.COMMAND_FILES,
  1248. gdb.COMPLETE_NONE)
  1249. def invoke(self, args, from_tty):
  1250. import re
  1251. start = None
  1252. end = None
  1253. m = re.match(r'\s*(\d+)\s*', args)
  1254. if m:
  1255. start = int(m.group(0))
  1256. end = start + 10
  1257. m = re.match(r'\s*(\d+)\s*,\s*(\d+)\s*', args)
  1258. if m:
  1259. start, end = map(int, m.groups())
  1260. frame = Frame.get_selected_python_frame()
  1261. if not frame:
  1262. print 'Unable to locate python frame'
  1263. return
  1264. pyop = frame.get_pyop()
  1265. if not pyop or pyop.is_optimized_out():
  1266. print 'Unable to read information on python frame'
  1267. return
  1268. filename = pyop.filename()
  1269. lineno = pyop.current_line_num()
  1270. if start is None:
  1271. start = lineno - 5
  1272. end = lineno + 5
  1273. if start<1:
  1274. start = 1
  1275. try:
  1276. f = open(os_fsencode(filename), 'r')
  1277. except IOError as err:
  1278. sys.stdout.write('Unable to open %s: %s\n'
  1279. % (filename, err))
  1280. return
  1281. with f:
  1282. all_lines = f.readlines()
  1283. # start and end are 1-based, all_lines is 0-based;
  1284. # so [start-1:end] as a python slice gives us [start, end] as a
  1285. # closed interval
  1286. for i, line in enumerate(all_lines[start-1:end]):
  1287. linestr = str(i+start)
  1288. # Highlight current line:
  1289. if i + start == lineno:
  1290. linestr = '>' + linestr
  1291. sys.stdout.write('%4s %s' % (linestr, line))
  1292. # ...and register the command:
  1293. PyList()
  1294. def move_in_stack(move_up):
  1295. '''Move up or down the stack (for the py-up/py-down command)'''
  1296. frame = Frame.get_selected_python_frame()
  1297. while frame:
  1298. if move_up:
  1299. iter_frame = frame.older()
  1300. else:
  1301. iter_frame = frame.newer()
  1302. if not iter_frame:
  1303. break
  1304. if iter_frame.is_evalframeex():
  1305. # Result:
  1306. if iter_frame.select():
  1307. iter_frame.print_summary()
  1308. return
  1309. frame = iter_frame
  1310. if move_up:
  1311. print 'Unable to find an older python frame'
  1312. else:
  1313. print 'Unable to find a newer python frame'
  1314. class PyUp(gdb.Command):
  1315. 'Select and print the python stack frame that called this one (if any)'
  1316. def __init__(self):
  1317. gdb.Command.__init__ (self,
  1318. "py-up",
  1319. gdb.COMMAND_STACK,
  1320. gdb.COMPLETE_NONE)
  1321. def invoke(self, args, from_tty):
  1322. move_in_stack(move_up=True)
  1323. class PyDown(gdb.Command):
  1324. 'Select and print the python stack frame called by this one (if any)'
  1325. def __init__(self):
  1326. gdb.Command.__init__ (self,
  1327. "py-down",
  1328. gdb.COMMAND_STACK,
  1329. gdb.COMPLETE_NONE)
  1330. def invoke(self, args, from_tty):
  1331. move_in_stack(move_up=False)
  1332. # Not all builds of gdb have gdb.Frame.select
  1333. if hasattr(gdb.Frame, 'select'):
  1334. PyUp()
  1335. PyDown()
  1336. class PyBacktraceFull(gdb.Command):
  1337. 'Display the current python frame and all the frames within its call stack (if any)'
  1338. def __init__(self):
  1339. gdb.Command.__init__ (self,
  1340. "py-bt-full",
  1341. gdb.COMMAND_STACK,
  1342. gdb.COMPLETE_NONE)
  1343. def invoke(self, args, from_tty):
  1344. frame = Frame.get_selected_python_frame()
  1345. while frame:
  1346. if frame.is_evalframeex():
  1347. frame.print_summary()
  1348. frame = frame.older()
  1349. PyBacktraceFull()
  1350. class PyBacktrace(gdb.Command):
  1351. 'Display the current python frame and all the frames within its call stack (if any)'
  1352. def __init__(self):
  1353. gdb.Command.__init__ (self,
  1354. "py-bt",
  1355. gdb.COMMAND_STACK,
  1356. gdb.COMPLETE_NONE)
  1357. def invoke(self, args, from_tty):
  1358. sys.stdout.write('Traceback (most recent call first):\n')
  1359. frame = Frame.get_selected_python_frame()
  1360. while frame:
  1361. if frame.is_evalframeex():
  1362. frame.print_traceback()
  1363. frame = frame.older()
  1364. PyBacktrace()
  1365. class PyPrint(gdb.Command):
  1366. 'Look up the given python variable name, and print it'
  1367. def __init__(self):
  1368. gdb.Command.__init__ (self,
  1369. "py-print",
  1370. gdb.COMMAND_DATA,
  1371. gdb.COMPLETE_NONE)
  1372. def invoke(self, args, from_tty):
  1373. name = str(args)
  1374. frame = Frame.get_selected_python_frame()
  1375. if not frame:
  1376. print 'Unable to locate python frame'
  1377. return
  1378. pyop_frame = frame.get_pyop()
  1379. if not pyop_frame:
  1380. print 'Unable to read information on python frame'
  1381. return
  1382. pyop_var, scope = pyop_frame.get_var_by_name(name)
  1383. if pyop_var:
  1384. print ('%s %r = %s'
  1385. % (scope,
  1386. name,
  1387. pyop_var.get_truncated_repr(MAX_OUTPUT_LEN)))
  1388. else:
  1389. print '%r not found' % name
  1390. PyPrint()
  1391. class PyLocals(gdb.Command):
  1392. 'Look up the given python variable name, and print it'
  1393. def __init__(self):
  1394. gdb.Command.__init__ (self,
  1395. "py-locals",
  1396. gdb.COMMAND_DATA,
  1397. gdb.COMPLETE_NONE)
  1398. def invoke(self, args, from_tty):
  1399. name = str(args)
  1400. frame = Frame.get_selected_python_frame()
  1401. if not frame:
  1402. print 'Unable to locate python frame'
  1403. return
  1404. pyop_frame = frame.get_pyop()
  1405. if not pyop_frame:
  1406. print 'Unable to read information on python frame'
  1407. return
  1408. for pyop_name, pyop_value in pyop_frame.iter_locals():
  1409. print ('%s = %s'
  1410. % (pyop_name.proxyval(set()),
  1411. pyop_value.get_truncated_repr(MAX_OUTPUT_LEN)))
  1412. PyLocals()