summaryrefslogtreecommitdiff
path: root/Tools/gdb/libpython.py
AgeCommit message (Collapse)AuthorLines
2011-12-19Issue #13628: python-gdb.py is now able to retrieve more frames in the PythonVictor Stinner-13/+32
traceback if Python is optimized. * delay the lookup of the size_t type, it is not available at startup * The second argument of the PyFrameObjectPtr constructor is optional, as done in other constructors * iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns an empty tuple instead of None if Python is optimized * Fix py-bt and py-bt-full to handle correctly "optimized" frames * Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx() if the pointer is optimized out in PyEval_EvalFrameEx()
2011-07-01libpython.py (gdb) now catchs IOError in py-list and py-bt commandsVictor Stinner-4/+18
py-list displays the error. py-bt ignores the error (the filename and line number is already displayed).
2011-05-13Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and addVictor Stinner-1/+40
a smarter "py-bt" command printing a classic Python traceback.
2010-10-17libpython: implementation of os.fsencode() with surrogateescape error handlerVictor Stinner-2/+20
2010-09-08gdb: fix representation of non-printable surrogate pairs, and workaroundAntoine Pitrou-8/+11
a bug in ascii().
2010-09-08Add a safety limit to the number of unicode characters we fetchAntoine Pitrou-1/+2
(followup to r84635, suggested by Dave Malcolm).
2010-09-08Issue #9188: The gdb extension now handles correctly narrow (UCS2) as wellAntoine Pitrou-13/+43
as wide (UCS4) unicode builds for both the host interpreter (embedded inside gdb) and the interpreter under test.
2010-08-17libpython.py: py-bt commands escape unencodable charactersVictor Stinner-1/+9
Encode unicode strings to the terminal encoding with backslashreplace error (as Python does for sys.stderr) before writing them to sys.stdout. It fixes UnicodeEncodeError on writing non-ascii characters in an ascii terminal (C locale: ASCII encoding).
2010-07-14#9235: fix missing import of sys.Georg Brandl-0/+1
2010-07-14Remove unused code that would raise a NameError.Georg Brandl-3/+0
2010-05-19Issue #8559: improve unicode support of (gdb) libpython.pyVictor Stinner-29/+46
* Escape non printable characters (use locale.getpreferredencoding()) * Fix support of surrogate pairs * test_gdb.py: use ascii() instead of repr() in gdb program arguments to avoid encoding issues * Fix test_strings() of test_gdb.py for encoding different than UTF-8 (eg. ACSII)
2010-04-21Issue #8380: Port gdb/libpython to 3.x.Martin v. Löwis-37/+188
2010-04-21Adapt libpython.py and test_gdb.py to Python3Victor Stinner-5/+5
* Rename PyStringObjectPtr to PyBytesObjectPtr * Replace PyObject_Print by textiowrapper_write
2010-04-21Merged revisions 79986-79987,80156 via svnmerge fromMartin v. Löwis-2/+17
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79986 | martin.v.loewis | 2010-04-12 07:18:16 +0200 (Mo, 12 Apr 2010) | 2 lines Issue #8330: Fix expected output in test_gdb. ........ r79987 | martin.v.loewis | 2010-04-12 07:22:25 +0200 (Mo, 12 Apr 2010) | 2 lines Re-enable all tests, to see which ones fail on the buildbots. ........ r80156 | martin.v.loewis | 2010-04-18 00:40:40 +0200 (So, 18 Apr 2010) | 2 lines Issue #8279: Fix test_gdb failures. ........
2010-04-20Merged revisions 80288 via svnmerge fromVictor Stinner-14/+14
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80288 | victor.stinner | 2010-04-21 00:28:31 +0200 (mer., 21 avril 2010) | 2 lines Issue #8437: Fix test_gdb failures, patch written by Dave Malcolm ........
2010-04-11Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via ↵Benjamin Peterson-0/+1392
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. ........