Commit Graph

17 Commits

Author SHA1 Message Date
Gregory P. Smith e2b3bbae4e Merged revisions 85657 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85657 | gregory.p.smith | 2010-10-17 12:40:59 -0700 (Sun, 17 Oct 2010) | 3 lines

  Remove the external non-python.org hyperlink and point people to
  Tools/gdb/libpython.py.
........
2010-10-17 19:42:46 +00:00
Gregory P. Smith 7e8f6d643c Merged revisions 85649 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85649 | gregory.p.smith | 2010-10-17 11:59:56 -0700 (Sun, 17 Oct 2010) | 2 lines

  The py_decref macro was incorrect and unnecessary.
........
2010-10-17 19:01:13 +00:00
Gregory P. Smith dcb411b8b6 Merged revisions 85646 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85646 | gregory.p.smith | 2010-10-17 11:38:04 -0700 (Sun, 17 Oct 2010) | 6 lines

  * Applys part of the patch from http://bugs.python.org/issue3631 to add
    a py_decref macro, fixup the pyo macro and reuse it and avoid a memory
    leak introduced by the pylocals macro.
  * Adds a note about gdb 7 python debugging support with links for
    more info on that.
........
2010-10-17 18:47:43 +00:00
Skip Montanaro 852a27db96 Update PyEval_EvalFrame to PyEval_EvalFrameEx. This looks to have been done
partially before.  Also add a comment describing how this might have to work
with different versions of the interpreter.
2010-01-14 01:12:34 +00:00
Georg Brandl beca49953d Fix the "pylocals" gdb command. 2009-07-23 09:17:09 +00:00
Georg Brandl 44fb2a9314 #5617: add a handy function to print a unicode string to gdbinit. 2009-03-31 22:35:46 +00:00
Neal Norwitz 4655e44b0f break sets a breakpoint rather than stopping the loop.
It *appears* a flag is necessary instead.
This was tested in gdb 6.0.

Backport candidate
2005-09-05 16:16:49 +00:00
Neil Schemenauer f98e6b15ba Fix pystack command. 2005-08-13 00:28:41 +00:00
Skip Montanaro afd77d980e Add definitions for "up" and "down" commands that print/display the current
Python file/line when the current C execution frame is inside
PyEval_EvalFrame.  These are commented out by default because GDB sometimes
crashes as a result (seems like a GDB bug).

Add a pyframe command that displays the current Python stack frame.  If the
marked lines are uncommented, it will also cause Emacs/XEmacs to display the
current file/line.
2005-01-08 21:56:43 +00:00
Skip Montanaro 0bb2a65dbd split functionality into pystack and pystackv commands. The former will
work with core dumps because it avoids calling any Python API routines.  The
latter prints all the local variable values as well as the stack frames but
won't work with core dumps because it relies on _PyObject_Dump to print
variables.
2004-11-17 16:04:15 +00:00
Michael W. Hudson 8c47f4a657 eval_frame now has a PyAPI-style name 2004-08-07 20:11:22 +00:00
Skip Montanaro 7a92d74c52 It would help if I deleted the old pystack!
Also, move pystack comment down next to it
2004-04-02 14:53:55 +00:00
Skip Montanaro 74d07f2bfa include local variables when dumping Python stack trace 2004-04-02 14:51:13 +00:00
Skip Montanaro 786ea6bc23 Add pystack definition to Misc/gdbinit with some explanation of its behavior
and add flag comments to ceval.c and main.c alerting people to the coupling
between pystack and the layout of those files.
2004-03-01 15:44:05 +00:00
Jeremy Hylton f64ec0f2a1 A helper to dump info about the current frame,
assuming it is the variable f.
2003-10-03 20:56:15 +00:00
Barry Warsaw bbd89b66b1 PyObject_Dump() -> _PyObject_Dump()
PyGC_Dump() -> _PyGC_Dump()
2001-01-24 04:18:13 +00:00
Barry Warsaw 39e44d7a9c A few useful definitions if you're using gdb. Copy to ~/.gdbinit to
pull it in automatically.
2001-01-23 16:25:19 +00:00