diff options
author | Tom Tromey <tromey@adacore.com> | 2022-06-23 11:09:28 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-07-18 08:49:55 -0600 |
commit | efd3baf0dcb38d7ecc2c8b4d1553254d3c022b7a (patch) | |
tree | 32c375e1e893117e20299cee54d30c1cb91e7679 /gdb/cli | |
parent | 8f7f9b3a9142eeea50054b83e9bce12056bae6c9 (diff) | |
download | gdb-efd3baf0dcb38d7ecc2c8b4d1553254d3c022b7a.zip gdb-efd3baf0dcb38d7ecc2c8b4d1553254d3c022b7a.tar.gz gdb-efd3baf0dcb38d7ecc2c8b4d1553254d3c022b7a.tar.bz2 |
Replace input_interactive_p with a method
This replaces the global input_interactive_p function with a new
method ui::input_interactive_p.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index aa73d53..5f81db4 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1176,7 +1176,7 @@ counted_command_line read_command_lines (const char *prompt_arg, int from_tty, int parse_commands, gdb::function_view<void (const char *)> validator) { - if (from_tty && input_interactive_p (current_ui)) + if (from_tty && current_ui->input_interactive_p ()) { if (deprecated_readline_begin_hook) { @@ -1203,7 +1203,7 @@ read_command_lines (const char *prompt_arg, int from_tty, int parse_commands, validator); } - if (from_tty && input_interactive_p (current_ui) + if (from_tty && current_ui->input_interactive_p () && deprecated_readline_end_hook) { (*deprecated_readline_end_hook) (); |