aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-stack.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-08-29 16:55:16 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-08-29 16:55:16 +0000
commitc04b3e8fc5b1096c502afa485cf468054af8c626 (patch)
tree86e0ff4664a768cb61b93ca0e878f683c48c4b07 /gdb/tui/tui-stack.c
parentb2a1944f3c5209117124c233038945fed3f8d56e (diff)
downloadgdb-c04b3e8fc5b1096c502afa485cf468054af8c626.zip
gdb-c04b3e8fc5b1096c502afa485cf468054af8c626.tar.gz
gdb-c04b3e8fc5b1096c502afa485cf468054af8c626.tar.bz2
gdb/
Fix TUI stepi on code without symbols. * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for current PC instead.
Diffstat (limited to 'gdb/tui/tui-stack.c')
-rw-r--r--gdb/tui/tui-stack.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 0068610..1ec9bcc 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -380,8 +380,11 @@ tui_show_frame_info (struct frame_info *fi)
{
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
&low, (CORE_ADDR) 0) == 0)
- error (_("No function contains program "
- "counter for selected frame."));
+ {
+ /* There is no symbol available for current PC. There is no
+ safe way how to "disassemble backwards". */
+ low = get_frame_pc (fi);
+ }
else
low = tui_get_low_disassembly_address (get_frame_arch (fi),
low, get_frame_pc (fi));