summaryrefslogtreecommitdiff
path: root/Cython/Debugger/libpython.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix cygdb (GH-3542)Volker-Weissmann2020-08-241-40/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cython debugger documentation: Added link to an installation script. * Got a new libpython.py from the cpython source distribution. * Default language level in tests is now 3 instead of 2 * Migrated codefile from python 2 to python 3. * Added testcase for the cy list command in cygdb. * Temporarily removing test case that freezes gdb. * Fixed a bug that broke several Cygdb tests. The cython_debug/cython_debug_info_* files map the names of the C-functions generated by the Cython compiler to the names of the functions in the *.pyx source. If the function was defined using "def" (and not "cpdef" or "cdef") in the *.pyx source file, the C-function named in cython_debug/cython_debug_info_* used to be __pyx_pw_*, which is the name of the wrapper function and now it is __pyx_f_*, which is the name of the actual function. This makes some Cygdb tests pass that did not pass before. * Better error messages: If a cygdb command raises, a traceback will be printed. * Fixed a bug in cygdb. The following now works: 1. Start cygdb 2. Type "cy exec" and hit enter 3. Type some other lines 4. Type "end" and hit enter. -> These "other lines" will get executed * Fixed a bug in cygdb: cy list now works outside of functions. * Added print_hr_allmarkers function for easier debugging. * Fixed a bug that broke cygdb: cy break did not work if you put the breakpoint outside of a function if there was e.g. the following somewhere in your *.pyx file: cdef class SomeClass(): pass * Added a Cygdb test for printing global variables. * Fixing cygdb: Replaced cy print with a simple, working solution. * If an exception in Cygdb occurs, a stacktrace will be printed. * Fixed a bug that broke cy break -p * Bugfix: The compiler now writes out correctly which cython linenumber and path corresponds to which c linenumber. * Set language_level=2 in runtests.py
* Fix many indentation and whitespace issues throughout the code base (GH-3673)scoder2020-06-101-3/+3
| | | … and enforce them with pycodestyle.
* Fixed gdb C call to free() that broke "cy exec". (GH-3487)Volker-Weissmann2020-04-031-1/+1
|
* Update libpython from latest CPython upstream (1ceb3a3d17).Stefan Behnel2019-03-311-33/+67
|
* Update URLs to https:// in docs and commentsJon Dufresne2019-01-111-3/+3
|
* Remove support for Py2.6 and various quirks that special-cased it.gh2692_remove_py26_supportStefan Behnel2018-10-301-3/+3
| | | | Closes #2692.
* Misc. typosluz.paz2018-07-131-1/+1
| | | Found via `codespell -q 3`
* Use NamedTemporaryFile instead of mkstempJeroen Demeyer2018-02-091-6/+4
|
* Trivial typo fixesUnknown2017-10-171-1/+1
| | | | | Most are non-user facing. Found using: `codespell -d -q 3`
* Add missing importStefan Behnel2017-09-041-0/+1
|
* Update gdb support in libpython.py from CPython 3.7 (git rev 5fe59f8).Stefan Behnel2017-09-041-348/+502
|
* Delete trailing spacesmathbunnyru2017-01-121-2/+2
|
* Replace "int(val) == 0" by "not val" for gdb.Value instancesJeroen Demeyer2016-08-171-2/+2
|
* adapt metaclass usage to Py2/Py3Stefan Behnel2015-07-261-2/+19
|
* replace xrange() by range() to make it work in Py2/Py3Stefan Behnel2015-07-251-1/+1
|
* make dict iteration compatible with Py2/Py3Stefan Behnel2015-07-251-8/+9
|
* make code usages of Python "long" compatible with Py2/Py3Stefan Behnel2015-07-251-12/+12
|
* make raw_input() usage compatible with Py2/Py3Stefan Behnel2015-07-251-1/+7
|
* make libcython.py Py2/3 compatible to allows its immediate usage from both ↵Stefan Behnel2014-09-051-69/+111
| | | | versions (and clean it up a little)
* Debugger: Support output for the 'display' commandMark Florisson2011-03-261-20/+36
|
* Debugger: Better output when halting on watchpointsMark Florisson2011-03-261-4/+8
|
* Debugger: Fix little exception detection bugMark Florisson2011-03-261-1/+1
|
* Debugger: Update 'help' documentationMark Florisson2011-03-261-2/+16
|
* Debugger: Added $cy_eval() GDB functionMark Florisson2011-03-251-15/+8
|
* Debugger: Fix a few libpython.py bugsMark Florisson2011-01-251-11/+48
|
* Debugger: Python 3 compatibility testsuiteMark Florisson2011-01-241-1/+1
|
* Debugger: Have 'cy run' take arguments (instead of having to use 'set args')Mark Florisson2011-01-181-2/+2
|
* Undo EOL whitespace additions.Robert Bradshaw2011-01-141-178/+178
|
* Debugger: Fix closure support + testsMark Florisson2010-12-251-2/+0
| | | | | Debugger: Recognition of module-level Cython code (initmodulename and PyInit_modulename) Fix debug flag (import Parsing when needed)
* Remove tempfileMark Florisson2010-12-161-0/+1
|
* Made libpython.py compatible with gdb 7.1Mark Florisson2010-12-151-15/+17
|
* Fix breakpoint approach for stepping (make stepping repeatable with ↵Mark Florisson2010-12-151-74/+17
| | | | breakpoints that are set and deleted instead of disabled)
* Fix Python stepping watchpoints + cy step repeatabilityMark Florisson2010-12-151-33/+52
|
* Disable watchpoint stepping by default (use cy step -w or cy step ↵Mark Florisson2010-12-151-3/+9
| | | | --watchpoint to enable) as hardware watchpoints are limited.
* Detect Python exceptionsMark Florisson2010-12-141-13/+29
|
* Generic exception supportMark Florisson2010-12-141-0/+3
|
* Refactor inferior execution control code, better gdb message handling and ↵Mark Florisson2010-12-141-132/+146
| | | | re-fix runtests.py
* Faster Python stepping using a watchpoint approach (f->f_lasti)Mark Florisson2010-12-141-23/+82
|
* Remove Python 3 metaclass support from Python 2 code (c'est ridicule!)Mark Florisson2010-12-091-4/+0
|
* Drop Python 2.5 support + unicode UCS4 builds support + add more testsMark Florisson2010-12-091-46/+79
|
* Made tests less verbose by not using distutils.core.setup + skip debugger ↵Mark Florisson2010-12-051-3/+7
| | | | tests when gdb < 7.2 or not available
* "Fix" printing of gdb.Values with non-ascii characters or unicode ordinalsMark Florisson2010-12-021-0/+4
|
* Excluded cygdb from python 2.3 and 2.4 installations and made it 2.5 compatibleMark Florisson2010-12-011-1/+3
| | | | | Made the distutils extension 2.3 compatible Renamed the --debug flag to --gdb and --pyrex-debug to --pyrex-gdb
* Changed bytes object ob_sval cast to unsigned char * to prevent a ↵Mark Florisson2010-11-301-2/+3
| | | | RuntimeError with "Invalid cast"
* cy exec test + correct building of locals dict in Cython frames for non-wide ↵Mark Florisson2010-11-281-3/+13
| | | | python 3 unicode builds
* set breakpoint pending on for libpythonmark2010-11-281-7/+11
|
* Choose PyString/PyBytesObjectPtr according to python version + support ↵mark2010-11-271-26/+36
| | | | signals terminating the inferior.
* Merged with libpython.py from Python3.2 + prevented continuation with ↵Mark Florisson2010-11-251-29/+245
| | | | negative pointer values gdb was giving to avoid segfaulting the inferior when using 'cy exec'
* Make stepping breakpoints internal in newer versions of gdbMark Florisson2010-11-221-2/+17
|
* Attempt to merge back Cython locals -- failed! gdb.Value is too brokenMark Florisson2010-11-181-1/+1
|