aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-frame.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-04-17 14:14:23 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-04-17 14:14:23 +0000
commit626e7282148f31aa82bcdaffe613fcf326914d76 (patch)
treed1163341549e03afed609ee03c75d8f8e37ebd88 /gdb/python/py-frame.c
parent45bbae5e3c5d55baf978e1acb5cb85dd8204d5eb (diff)
downloadgdb-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-frame.c')
-rw-r--r--gdb/python/py-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index a4ff66f..d7128a9 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -436,7 +436,7 @@ frapy_read_var (PyObject *self, PyObject *args)
FRAPY_REQUIRE_VALID ((frame_object *) self, frame);
if (!block)
- block = block_for_pc (get_frame_address_in_block (frame));
+ block = get_frame_block (frame, NULL);
var = lookup_symbol (var_name, block, VAR_DOMAIN, NULL);
}
GDB_PY_HANDLE_EXCEPTION (except);