diff options
| author | Tom Tromey <tromey@redhat.com> | 2011-01-06 21:10:53 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@redhat.com> | 2011-01-06 21:10:53 +0000 |
| commit | d8e227793f4a8ce420f2b4a068844b5b6ec39490 (patch) | |
| tree | afc91da0a4286a456cde5288ec85184acbf3f61e /gdb/python/python-internal.h | |
| parent | a255712f6589e84469ad702e4f9a53bec250fb9f (diff) | |
| download | ppe42-binutils-d8e227793f4a8ce420f2b4a068844b5b6ec39490.tar.gz ppe42-binutils-d8e227793f4a8ce420f2b4a068844b5b6ec39490.zip | |
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/python/python-internal.h')
| -rw-r--r-- | gdb/python/python-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index c9630c32da..80d0763454 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -110,6 +110,7 @@ PyObject *gdbpy_history (PyObject *self, PyObject *args); PyObject *gdbpy_breakpoints (PyObject *, PyObject *); PyObject *gdbpy_frame_stop_reason_string (PyObject *, PyObject *); PyObject *gdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw); +PyObject *gdbpy_newest_frame (PyObject *self, PyObject *args); PyObject *gdbpy_selected_frame (PyObject *self, PyObject *args); PyObject *gdbpy_block_for_pc (PyObject *self, PyObject *args); PyObject *gdbpy_lookup_type (PyObject *self, PyObject *args, PyObject *kw); |

