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.

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