Yesterday, I was trying to get the Python gdb macros to work in
Chandler's python, and finding that the very handy "pystack" command
wasn't working at all.
Anyway, I figured out a tweak to the "pystack" macro that got things
to work for me. The patch is below for anyone else who needs it; I'm
not sure if it fixes a typo, or if the bug is a result of symbols
shifting around in the python 2.5 binary. I'll probably follow up on
the python IRC channel at some point.
--Grant
--- external/python/Python-2.5/Misc/gdbinit 2005-09-05
09:16:49.000000000 -0700
+++ /Users/grant/.gdbinit 2007-01-17 18:08:03.000000000 -0800
@@ -120,7 +120,7 @@
# 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
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev