aboutsummaryrefslogtreecommitdiff
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
parent27229e99915e0a4bed28d2a9428a73c34df99415 (diff)
downloadfsf-binutils-gdb-f020bed67065dc94b298143b23ad96fd3286be78.zip
fsf-binutils-gdb-f020bed67065dc94b298143b23ad96fd3286be78.tar.gz
fsf-binutils-gdb-f020bed67065dc94b298143b23ad96fd3286be78.tar.bz2
* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tuiWin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 2031587..a7d3f43 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -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.
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",