diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-01 17:23:59 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-01 17:23:59 +0000 |
commit | f020bed67065dc94b298143b23ad96fd3286be78 (patch) | |
tree | 07bb070c2d4dd811233431a8913d9926eb896f4c | |
parent | 27229e99915e0a4bed28d2a9428a73c34df99415 (diff) | |
download | ppe42-binutils-f020bed67065dc94b298143b23ad96fd3286be78.tar.gz ppe42-binutils-f020bed67065dc94b298143b23ad96fd3286be78.zip |
* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
-rw-r--r-- | gdb/tui/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tuiWin.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 2031587980..a7d3f43965 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 82c3d4951f..aa829ec78e 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", |