aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiWin.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-09-01 17:23:59 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-09-01 17:23:59 +0000
commitf020bed67065dc94b298143b23ad96fd3286be78 (patch)
tree07bb070c2d4dd811233431a8913d9926eb896f4c /gdb/tui/tuiWin.c
parent27229e99915e0a4bed28d2a9428a73c34df99415 (diff)
downloadgdb-f020bed67065dc94b298143b23ad96fd3286be78.zip
gdb-f020bed67065dc94b298143b23ad96fd3286be78.tar.gz
gdb-f020bed67065dc94b298143b23ad96fd3286be78.tar.bz2
* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r--gdb/tui/tuiWin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c
index 82c3d49..aa829ec 100644
--- a/gdb/tui/tuiWin.c
+++ b/gdb/tui/tuiWin.c
@@ -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",