OSDN Git Service

* 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 2031587..a7d3f43 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
        to update the current source line.
index 82c3d49..aa829ec 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",