diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-17 14:14:23 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-17 14:14:23 +0000 |
commit | 626e7282148f31aa82bcdaffe613fcf326914d76 (patch) | |
tree | d1163341549e03afed609ee03c75d8f8e37ebd88 /gdb/python/py-symbol.c | |
parent | 45bbae5e3c5d55baf978e1acb5cb85dd8204d5eb (diff) | |
download | gdb-626e7282148f31aa82bcdaffe613fcf326914d76.zip gdb-626e7282148f31aa82bcdaffe613fcf326914d76.tar.gz gdb-626e7282148f31aa82bcdaffe613fcf326914d76.tar.bz2 |
gdb/
Fix Python access to inlined frames.
* python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
* python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
gdb/testsuite/
Fix Python access to inlined frames.
* gdb.python/py-frame-inline.c: New file.
* gdb.python/py-frame-inline.exp: New file.
Diffstat (limited to 'gdb/python/py-symbol.c')
-rw-r--r-- | gdb/python/py-symbol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 2c7900f..046d78c 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -275,8 +275,8 @@ gdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw) TRY_CATCH (except, RETURN_MASK_ALL) { - selected_frame = get_selected_frame (_("No frame selected.")); - block = block_for_pc (get_frame_address_in_block (selected_frame)); + selected_frame = get_selected_frame (_("No frame selected.")); + block = get_frame_block (selected_frame, NULL); } GDB_PY_HANDLE_EXCEPTION (except); } |