On Fri, 2004-02-27 at 18:00, Brad Clements wrote: > So, how can I figure out where in the Python source the function call is coming from > using gdb? I'm sure it involves "print" and some casts.. I couldn't find a howto on > python.org First, make sure that the code from Misc/gdbinit is in your .gdbinit file. Get the stack trace in gdb and move up/down until you get to an eval_frame() frame. Then call the function pyframe. It will print the filename, function name, and line number of the current frame. The lineno usually points to the first line of the function. Jeremy
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