gdb
PR python/12367: * NEWS: Add item. * python/python.c (GdbMethods): Add "newest_frame" method. * python/python-internal.h (gdbpy_newest_frame): Declare. * python/py-frame.c (gdbpy_newest_frame): New function. gdb/doc * gdb.texinfo (Frames In Python): Document gdb.newest_thread. gdb/testsuite * gdb.python/py-frame.exp: Test gdb.newest_frame.
This commit is contained in:
parent
a255712f65
commit
d8e227793f
9 changed files with 55 additions and 0 deletions
|
@ -1121,6 +1121,9 @@ static PyMethodDef GdbMethods[] =
|
|||
{ "objfiles", gdbpy_objfiles, METH_NOARGS,
|
||||
"Return a sequence of all loaded objfiles." },
|
||||
|
||||
{ "newest_frame", gdbpy_newest_frame, METH_NOARGS,
|
||||
"newest_frame () -> gdb.Frame.\n\
|
||||
Return the newest frame object." },
|
||||
{ "selected_frame", gdbpy_selected_frame, METH_NOARGS,
|
||||
"selected_frame () -> gdb.Frame.\n\
|
||||
Return the selected frame object." },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue