summaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c8
1 files changed, 4 insertions, 4 deletions
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))