summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-25 18:42:32 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-25 18:42:32 +0000
commit3f1f1604c654c30259a81a11086ef412f73e3fa3 (patch)
tree031c3feac79e0543e3ea7e191db007f4e0f1292e
parent8391ce91874443650345d548856fa95fc7cb4b36 (diff)
downloadgdb-3f1f1604c654c30259a81a11086ef412f73e3fa3.tar.gz
* tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
the frame position.
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tui-hooks.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 60ec1d0e72d..8abbf61cc35 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -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.
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index 27556acfd15..48eeeda9240 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -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))