aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-01-06 21:10:53 +0000
committerTom Tromey <tromey@redhat.com>2011-01-06 21:10:53 +0000
commitd8e227793f4a8ce420f2b4a068844b5b6ec39490 (patch)
treeafc91da0a4286a456cde5288ec85184acbf3f61e /gdb/doc
parenta255712f6589e84469ad702e4f9a53bec250fb9f (diff)
downloadgdb-d8e227793f4a8ce420f2b4a068844b5b6ec39490.zip
gdb-d8e227793f4a8ce420f2b4a068844b5b6ec39490.tar.gz
gdb-d8e227793f4a8ce420f2b4a068844b5b6ec39490.tar.bz2
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo5
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 9924768..8835a31 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Frames In Python): Document gdb.newest_thread.
+
2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Debugging Output): Document "set debug jit".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index a16cf83..d47a484 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -22519,6 +22519,11 @@ The following frame-related functions are available in the @code{gdb} module:
Return the selected frame object. (@pxref{Selection,,Selecting a Frame}).
@end defun
+@findex gdb.newest_frame
+@defun newest_frame
+Return the newest frame object for the selected thread.
+@end defun
+
@defun frame_stop_reason_string reason
Return a string explaining the reason why @value{GDBN} stopped unwinding
frames, as expressed by the given @var{reason} code (an integer, see the