diff options
author | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:51 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:51 +0100 |
commit | dbf30ca3f5fec91671b37592f1a6644a2c36f67a (patch) | |
tree | 73f8bfedce01e0127c2f7794eacc6d24943d9304 /gdb/tui/tui-io.c | |
parent | b2d86570b316c347384c4ba9bb3933ed5e807fca (diff) | |
download | gdb-dbf30ca3f5fec91671b37592f1a6644a2c36f67a.zip gdb-dbf30ca3f5fec91671b37592f1a6644a2c36f67a.tar.gz gdb-dbf30ca3f5fec91671b37592f1a6644a2c36f67a.tar.bz2 |
Make gdb_in_secondary_prompt_p() be per UI
gdb/ChangeLog:
2016-06-21 Pedro Alves <palves@redhat.com>
* top.c (gdb_secondary_prompt_depth): Delete.
(gdb_in_secondary_prompt_p): Add ui parameter. Use it.
(gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
per-UI gdb_secondary_prompt_depth.
* top.h (struct ui) <secondary_prompt_depth>: New field.
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r-- | gdb/tui/tui-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 6f2d892..ed79b44 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -212,7 +212,7 @@ tui_redisplay_readline (void) The command could call prompt_for_continue and we must not restore SingleKey so that the prompt and normal keymap are used. */ if (tui_current_key_mode == TUI_ONE_COMMAND_MODE && rl_end == 0 - && !gdb_in_secondary_prompt_p ()) + && !gdb_in_secondary_prompt_p (current_ui)) tui_set_key_mode (TUI_SINGLE_KEY_MODE); if (tui_current_key_mode == TUI_SINGLE_KEY_MODE) @@ -585,7 +585,7 @@ tui_getc (FILE *fp) with empty lines with gdb prompt at beginning. Instead of that, stay on the same line but provide a visual effect to show the user we recognized the command. */ - if (rl_end == 0 && !gdb_in_secondary_prompt_p ()) + if (rl_end == 0 && !gdb_in_secondary_prompt_p (current_ui)) { wmove (w, getcury (w), 0); |