Hi,
I tried to use gdbinit today and found that the "fragile" pystacks macro didn't
work anymore. I don't know gdb very well, but this turned out to work a bit more
reliably:
# print the entire Python call stack
define pystack
set $last=0
while $sp != $last
if $pc > PyEval_EvalFrame && $pc < PyEval_EvalCodeEx
pyframe
end
set $last=$sp
up-silently 1
end
select-frame 0
end
Just in case anybody might want to use this and update the existing gdbinit.
Christian
PS: I'm not subscribed to this list.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com