* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Sep 2002 17:23:59 +0000 (17:23 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Sep 2002 17:23:59 +0000 (17:23 +0000)
is not displayed.

gdb/tui/ChangeLog
gdb/tui/tuiWin.c

index 20315879802d4262ea43137a2c8abb768a40be2f..a7d3f43965f97d6df51afaac21d09083a191912c 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
+       is not displayed.
+
 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
 
        * tui-out.c (tui_out_new): Clear start_of_line.
index 82c3d4951f40dc3e9002baec0cab67f7ed31cf8c..aa829ec78e4b1a7e3fb885df30645a01538592e8 100644 (file)
@@ -928,7 +928,7 @@ _tuiAllWindowsInfo (char *arg, int fromTTY)
   TuiWinInfoPtr winWithFocus = tuiWinWithFocus ();
 
   for (type = SRC_WIN; (type < MAX_MAJOR_WINDOWS); type++)
-    if (winList[type]->generic.isVisible)
+    if (winList[type] && winList[type]->generic.isVisible)
       {
        if (winWithFocus == winList[type])
          printf_filtered ("        %s\t(%d lines)  <has focus>\n",
This page took 0.131419 seconds and 4 git commands to generate.