OSDN Git Service

* tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
authorciceron <ciceron>
Sun, 25 Aug 2002 18:42:32 +0000 (18:42 +0000)
committerciceron <ciceron>
Sun, 25 Aug 2002 18:42:32 +0000 (18:42 +0000)
the frame position.

gdb/tui/ChangeLog
gdb/tui/tui-hooks.c

index 60ec1d0..8abbf61 100644 (file)
@@ -1,5 +1,10 @@
 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
 
+       * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
+       the frame position.
+
+2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
+
        * tuiStack.c (tuiSetLocatorContent): Remove.
        (tuiUpdateLocatorInfoFromFrame): Remove.
        (tui_set_locator_info): Allocate the content buffer if necessary.
index 27556ac..48eeeda 100644 (file)
@@ -309,10 +309,10 @@ tui_selected_frame_level_changed_hook (int level)
          would be 0 here, and select_source_symtab would abort the
          command by calling the 'error' function */
       if (s)
-       {
-          select_source_symtab (s);
-          tuiShowFrameInfo (fi);
-       }
+        select_source_symtab (s);
+
+      /* Display the frame position (even if there is no symbols).  */
+      tuiShowFrameInfo (fi);
 
       /* Refresh the register window if it's visible.  */
       if (tui_is_window_visible (DATA_WIN))