From efd3baf0dcb38d7ecc2c8b4d1553254d3c022b7a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 23 Jun 2022 11:09:28 -0600 Subject: Replace input_interactive_p with a method This replaces the global input_interactive_p function with a new method ui::input_interactive_p. --- gdb/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index 5503acf..b0841e1 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -880,7 +880,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args) way, important error messages don't get lost when talking to GDB over a pipe. */ if (current_ui->instream != current_ui->stdin_stream - || !input_interactive_p (current_ui) + || !current_ui->input_interactive_p () /* Restrict queries to the main UI. */ || current_ui != main_ui) { -- cgit v1.1