diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tui.c | 16 |
2 files changed, 15 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ba19905..e576000 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-02-17 Pedro Alves <palves@redhat.com> + + * tui/tui.c (tui_enable): Resize windows before anything + might show a window. + 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com> PR gdb/17984 diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 834e682..0397ee9 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -487,18 +487,22 @@ tui_enable (void) tui_setup_io (1); tui_active = 1; - if (deprecated_safe_get_selected_frame ()) - tui_show_frame_info (deprecated_safe_get_selected_frame ()); - /* Restore TUI keymap. */ - tui_set_key_mode (tui_current_key_mode); - - /* Resize and refresh the screen. */ + /* Resize windows before anything might display/refresh a + window. */ if (tui_win_resized ()) { tui_resize_all (); tui_set_win_resized_to (FALSE); } + + if (deprecated_safe_get_selected_frame ()) + tui_show_frame_info (deprecated_safe_get_selected_frame ()); + + /* Restore TUI keymap. */ + tui_set_key_mode (tui_current_key_mode); + + /* Refresh the screen. */ tui_refresh_all_win (); /* Update gdb's knowledge of its terminal. */ |