summaryrefslogtreecommitdiff
path: root/gdb/tui/tuiWin.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-16 22:13:38 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-16 22:13:38 +0000
commitcf33e43b0548709f727d8c376edf7288d87a9682 (patch)
tree6fb04ffb4310ae01b9092bfaeb1de48a3c653f0f /gdb/tui/tuiWin.c
parent774a290f7a1904c836fdf4f661ce8cdfe4c4b1b9 (diff)
downloadgdb-cf33e43b0548709f727d8c376edf7288d87a9682.tar.gz
* tuiStack.c: Add missing includes.
(tuiShowFrameInfo): Don't crash when there is no symbol table associated with the pc. * tuiSource.c (_hasBreak): Check for null source file. * tuiWin.c (tuiRefreshAll): Check for null winList[type]. (_tuiSetFocus): Check for null dataWin. * tuiGeneralWin.c (refreshAll): Check for null list[type].
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r--gdb/tui/tuiWin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c
index 333a8a6d05e..925e1f4fa71 100644
--- a/gdb/tui/tuiWin.c
+++ b/gdb/tui/tuiWin.c
@@ -350,7 +350,7 @@ tuiRefreshAll (void)
refreshAll (winList);
for (type = SRC_WIN; type < MAX_MAJOR_WINDOWS; type++)
{
- if (winList[type]->generic.isVisible)
+ if (winList[type] && winList[type]->generic.isVisible)
{
switch (type)
{
@@ -680,7 +680,7 @@ The window name specified must be valid and visible.\n");
keypad (cmdWin->generic.handle, (winInfo != cmdWin));
}
- if (dataWin->generic.isVisible)
+ if (dataWin && dataWin->generic.isVisible)
tuiRefreshDataWin ();
tuiFree (bufPtr);
printf_filtered ("Focus set to %s window.\n",