mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 18:57:01 +08:00
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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user