Fix PR20494 - User input stops being echoed in CLI
[deliverable/binutils-gdb.git] / gdb / top.c
index 36c300e8ce1f2f36e274f32d3d38b285bbde1605..bc44192b8ad52dbb025bbd4bb624f08cb7345b38 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1719,7 +1719,7 @@ show_interactive_mode (struct ui_file *file, int from_tty,
   if (interactive_mode == AUTO_BOOLEAN_AUTO)
     fprintf_filtered (file, "Debugger's interactive mode "
                            "is %s (currently %s).\n",
-                      value, gdb_has_a_terminal () ? "on" : "off");
+                      value, input_interactive_p (current_ui) ? "on" : "off");
   else
     fprintf_filtered (file, "Debugger's interactive mode is %s.\n", value);
 }
This page took 0.02655 seconds and 4 git commands to generate.