A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-May/073154.html below:

[Python-Dev] updated for gdbinit

[Python-Dev] updated for gdbinit [Python-Dev] updated for gdbinitChristian Theune ct at gocept.com
Tue May 15 15:05:01 CEST 2007
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.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4