diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 7ff5825..99d30a5 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -489,10 +489,6 @@ tui_enable (void) clearok (stdscr, TRUE); } - /* Install the TUI specific hooks. */ - tui_install_hooks (); - rl_startup_hook = tui_rl_startup_hook; - if (tui_update_variables ()) tui_rehighlight_all (); @@ -513,6 +509,12 @@ tui_enable (void) else tui_display_main (); + /* Install the TUI specific hooks. This must be done after the call to + tui_display_main so that we don't detect the symtab changed event it + can cause. */ + tui_install_hooks (); + rl_startup_hook = tui_rl_startup_hook; + /* Restore TUI keymap. */ tui_set_key_mode (tui_current_key_mode); |