gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 29 Aug 2011 16:55:16 +0000 (16:55 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 29 Aug 2011 16:55:16 +0000 (16:55 +0000)
Fix TUI stepi on code without symbols.
* tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
current PC instead.

gdb/ChangeLog
gdb/tui/tui-stack.c

index 790191074c55620ed1259ae4d06f0ea1af5e2f81..2d63c5cc4c56261aa2363cd7510b568d6bc2cd25 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix TUI stepi on code without symbols.
+       * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
+       current PC instead.
+
 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Code cleanup.
index 0068610727ded59a50ac37035faf303ab3763348..1ec9bcce653f61c098a519c4d69b68968ea34ac4 100644 (file)
@@ -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));