diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2012-11-10 13:12:18 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2012-11-10 13:12:18 +0000 |
commit | 9b8d6827200e1b04d3ca860ce52472655e84248c (patch) | |
tree | 0de47fc751fdda000fe6f16745d0fd1477790e91 /gdb/tui/tui.c | |
parent | e840f632eb1879fd022f88ab1e2f5ce3a41d3cbe (diff) | |
download | binutils-9b8d6827200e1b04d3ca860ce52472655e84248c.zip binutils-9b8d6827200e1b04d3ca860ce52472655e84248c.tar.gz binutils-9b8d6827200e1b04d3ca860ce52472655e84248c.tar.bz2 |
* tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
while executing the gdb command.
(tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
are called from prompt_for_continue.
* tui/tui-io.c (tui_redisplay_readline): Likewise.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r-- | gdb/tui/tui.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 3e79b32..feec526 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -247,6 +247,10 @@ tui_rl_command_key (int count, int key) in the readline history which turns out to be better. */ rl_insert_text (tui_commands[i].cmd); rl_newline (1, '\n'); + + /* Switch to gdb command mode while executing the command. + This way the gdb's continue prompty will be displayed. */ + tui_set_key_mode (TUI_ONE_COMMAND_MODE); return 0; } } @@ -285,7 +289,7 @@ static int tui_rl_startup_hook (void) { rl_already_prompted = 1; - if (tui_current_key_mode != TUI_COMMAND_MODE) + if (tui_current_key_mode != TUI_COMMAND_MODE && immediate_quit == 0) tui_set_key_mode (TUI_SINGLE_KEY_MODE); tui_redisplay_readline (); return 0; |