aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-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",