aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 18:53:15 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 18:53:15 +0000
commit9bf4bce9847504467f8af7e3c7886cce1794dbad (patch)
tree227cf89014e1c03342a78ed31b6b300a96c691ce /gdb/cli/cli-cmds.c
parent1c5b7826c52fb624d1d03762fafc005f8fac62a7 (diff)
downloadgdb-9bf4bce9847504467f8af7e3c7886cce1794dbad.zip
gdb-9bf4bce9847504467f8af7e3c7886cce1794dbad.tar.gz
gdb-9bf4bce9847504467f8af7e3c7886cce1794dbad.tar.bz2
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/cli-cmds.c')
-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 2e98804..dcf5369 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)