summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 18:53:05 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 18:53:05 +0000
commitcc0fa2ebc0d9e5290e24f09b94b69e9018a290fd (patch)
treefa7ffd1be4c0e9a3126c35d2406060ff54d7ebb2 /gdb/cli
parentb89e95a1a2fbb7cad75c73dfcd1a8111e3628e73 (diff)
downloadgdb-cc0fa2ebc0d9e5290e24f09b94b69e9018a290fd.tar.gz
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.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 2e988045d0f..dcf53694f40 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -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)