mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb/
Fix disassemble without parameters in tailcall frame. * cli/cli-cmds.c (disassemble_current_function): Use get_frame_address_in_block. gdb/testsuite/ Fix disassemble without parameters in tailcall frame. * gdb.arch/amd64-entry-value.exp (down, disassemble): New tests.
This commit is contained in:
@@ -1091,7 +1091,7 @@ disassemble_current_function (int flags)
|
||||
|
||||
frame = get_selected_frame (_("No frame selected."));
|
||||
gdbarch = get_frame_arch (frame);
|
||||
pc = get_frame_pc (frame);
|
||||
pc = get_frame_address_in_block (frame);
|
||||
if (find_pc_partial_function (pc, &name, &low, &high) == 0)
|
||||
error (_("No function contains program counter for selected frame."));
|
||||
#if defined(TUI)
|
||||
|
||||
Reference in New Issue
Block a user