Browse Source

* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window

is not displayed.
drow-cplus-branch
Stephane Carrez 24 years ago
parent
commit
f020bed670
  1. 5
      gdb/tui/ChangeLog
  2. 2
      gdb/tui/tuiWin.c

5
gdb/tui/ChangeLog

@ -1,3 +1,8 @@
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.

2
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",

Loading…
Cancel
Save