From f020bed67065dc94b298143b23ad96fd3286be78 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Sun, 1 Sep 2002 17:23:59 +0000 Subject: * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window is not displayed. --- gdb/tui/ChangeLog | 5 +++++ gdb/tui/tuiWin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb/tui') 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 + * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window + is not displayed. + +2002-09-01 Stephane Carrez + * 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) \n", -- cgit v1.1