[Python-checkins] r77485 - python/branches/py3k/Misc/gdbinit

skip.montanaro python-checkins at python.org
Thu Jan 14 02:14:50 CET 2010


Author: skip.montanaro
Date: Thu Jan 14 02:14:50 2010
New Revision: 77485

Log:
Make similar changes to 3.x version.


Modified:
   python/branches/py3k/Misc/gdbinit

Modified: python/branches/py3k/Misc/gdbinit
==============================================================================
--- python/branches/py3k/Misc/gdbinit	(original)
+++ python/branches/py3k/Misc/gdbinit	Thu Jan 14 02:14:50 2010
@@ -115,12 +115,18 @@
 # interpreter, but the test can be extended by an interested party).  If
 # Py_Main <= $pc <= Py_GetArgcArv is true, $pc is in Py_Main(), so the while
 # tests succeeds as long as it's not true.  In a similar fashion the if
-# statement tests to see if we are in PyEval_EvalFrame().
+# statement tests to see if we are in PyEval_EvalFrameEx().
+
+# Note: The name of the main interpreter function and the function which
+# follow it has changed over time.  This version of pystack works with this
+# version of Python.  If you try using it with older or newer versions of
+# the interpreter you may will have to change the functions you compare with
+# $pc.
 
 # print the entire Python call stack
 define pystack
     while $pc < Py_Main || $pc > Py_GetArgcArgv
-        if $pc > PyEval_EvalFrame && $pc < PyEval_EvalCodeEx
+        if $pc > PyEval_EvalFrameEx && $pc < PyEval_EvalCodeEx
 	    pyframe
         end
         up-silently 1
@@ -131,7 +137,7 @@
 # print the entire Python call stack - verbose mode
 define pystackv
     while $pc < Py_Main || $pc > Py_GetArgcArgv
-        if $pc > PyEval_EvalFrame && $pc < PyEval_EvalCodeEx
+        if $pc > PyEval_EvalFrameEx && $pc < PyEval_EvalCodeEx
 	    pyframev
         end
         up-silently 1


More information about the Python-checkins mailing list