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.

1702 lines
56 KiB

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