Treat inactive TUI specially in "info win"
[deliverable/binutils-gdb.git] / gdb / tui / tui-win.c
index b6204beb216836ef7b136a83efcf9d48c6a58cfb..b0111d7cf8cb5fb44357e84cfe987d5b67c01ff1 100644 (file)
@@ -847,6 +847,12 @@ tui_set_focus_command (const char *arg, int from_tty)
 static void
 tui_all_windows_info (const char *arg, int from_tty)
 {
+  if (!tui_active)
+    {
+      printf_filtered (_("The TUI is not active.\n"));
+      return;
+    }
+
   struct tui_win_info *win_with_focus = tui_win_with_focus ();
   struct ui_out *uiout = current_uiout;
 
This page took 0.025979 seconds and 4 git commands to generate.