summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
Commit message (Collapse)AuthorAgeFilesLines
* #17833: merge with 3.3David Malcolm2013-05-061-1/+1
|\
| * #17833: fix test_gdb failures seen on PPC64 Linux in test_threads ↵David Malcolm2013-05-061-1/+1
| | | | | | | | (test.test_gdb.PyBtTests)
* | python-gdb.py: Replace invalid Unicode character with U+FFFD to be able toVictor Stinner2013-04-111-1/+3
|/ | | | | | display invalid strings. Such strings can be found while Python is creating a new string, in a text decoder for example, when Python is compiled in debug mode.
* Fix a few typos and a double semicolon. Patch by Eitan Adler.Ezio Melotti2013-01-271-1/+1
|
* compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-1/+1
| | | | Patch from Serhiy Storchaka.
* Issue #12605: Show information on more C frames within gdb backtracesDavid Malcolm2012-06-271-9/+92
| | | | | | | | | The gdb hooks for debugging CPython (within Tools/gdb) have been enhanced to show information on more C frames relevant to CPython within the "py-bt" and "py-bt-full" commands: * C frames that are waiting on the GIL * C frames that are garbage-collecting * C frames that are due to the invocation of a PyCFunction
* Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-3/+8
| | | | Patch from Mark Shannon.
* (Merge 3.2) Issue #13628: python-gdb.py is now able to retrieve more frames inVictor Stinner2011-12-191-13/+32
|\ | | | | | | | | | | | | | | | | | | | | | | | | the Python 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()
| * Issue #13628: python-gdb.py is now able to retrieve more frames in the PythonVictor Stinner2011-12-191-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()
* | Fix test_gdb failureAntoine Pitrou2011-12-121-1/+0
| |
* | Issue #13575: there is only one class type.Florent Xicluna2011-12-121-41/+3
| |
* | libpython.py: defer call to gdb.lookup_type('PyUnicodeObject')Victor Stinner2011-12-071-1/+6
| | | | | | | | The lookup fails at startup if Python is linked to a shared library.
* | Oops, really fix gdb/libpython.py for not ready Unicode stringsVictor Stinner2011-11-041-1/+2
| |
* | Fix gdb/libpython.py for not ready Unicode stringsVictor Stinner2011-11-041-5/+0
| | | | | | | | | | _PyUnicode_CheckConsistency() checks also hash and length value for not ready Unicode strings.
* | Fix test_gdb following the small unicode struct change in c25262e97304 ↵Antoine Pitrou2011-10-081-1/+1
| | | | | | | | (issue #13130)
* | PyUnicode_Ready() now sets ascii=1 if maxchar < 128Victor Stinner2011-10-031-2/+3
| | | | | | | | | | ascii=1 is no more reserved to PyASCIIObject. Use PyUnicode_IS_COMPACT_ASCII(obj) to check if obj is a PyASCIIObject (as before).
* | Update for PEP 393.Martin v. Löwis2011-09-281-12/+25
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-3/+24
|/
* libpython.py (gdb) now catchs IOError in py-list and py-bt commandsVictor Stinner2011-07-011-4/+18
| | | | | py-list displays the error. py-bt ignores the error (the filename and line number is already displayed).
* Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and addVictor Stinner2011-05-131-1/+40
| | | | a smarter "py-bt" command printing a classic Python traceback.
* libpython: implementation of os.fsencode() with surrogateescape error handlerVictor Stinner2010-10-171-2/+20
|
* gdb: fix representation of non-printable surrogate pairs, and workaroundAntoine Pitrou2010-09-081-8/+11
| | | | a bug in ascii().
* Add a safety limit to the number of unicode characters we fetchAntoine Pitrou2010-09-081-1/+2
| | | | (followup to r84635, suggested by Dave Malcolm).
* Issue #9188: The gdb extension now handles correctly narrow (UCS2) as wellAntoine Pitrou2010-09-081-13/+43
| | | | | as wide (UCS4) unicode builds for both the host interpreter (embedded inside gdb) and the interpreter under test.
* libpython.py: py-bt commands escape unencodable charactersVictor Stinner2010-08-171-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).
* #9235: fix missing import of sys.Georg Brandl2010-07-141-0/+1
|
* Remove unused code that would raise a NameError.Georg Brandl2010-07-141-3/+0
|
* Issue #8559: improve unicode support of (gdb) libpython.pyVictor Stinner2010-05-191-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)
* Issue #8380: Port gdb/libpython to 3.x.Martin v. Löwis2010-04-211-37/+188
|
* Adapt libpython.py and test_gdb.py to Python3Victor Stinner2010-04-211-5/+5
| | | | | * Rename PyStringObjectPtr to PyBytesObjectPtr * Replace PyObject_Print by textiowrapper_write
* Merged revisions 79986-79987,80156 via svnmerge fromMartin v. Löwis2010-04-211-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. ........
* Merged revisions 80288 via svnmerge fromVictor Stinner2010-04-201-15/+15
| | | | | | | | | | 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 ........
* Merged revisions 79548,79557,79616-79617,79716,79778,79795,79803,79896 via ↵Benjamin Peterson2010-04-111-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. ........