aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiStack.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
commit75fd9bc1ec6f7c44cea2dce02c996c07ab826af8 (patch)
tree347044a928b598c11219cb472961ecf2b11400f1 /gdb/tui/tuiStack.c
parenta8080b7fbfaf3a5916b4ce95f097a890a48fc878 (diff)
downloadgdb-75fd9bc1ec6f7c44cea2dce02c996c07ab826af8.zip
gdb-75fd9bc1ec6f7c44cea2dce02c996c07ab826af8.tar.gz
gdb-75fd9bc1ec6f7c44cea2dce02c996c07ab826af8.tar.bz2
* 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/tuiStack.c')
-rw-r--r--gdb/tui/tuiStack.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c
index 47a0cd0..edff5cb 100644
--- a/gdb/tui/tuiStack.c
+++ b/gdb/tui/tuiStack.c
@@ -23,10 +23,13 @@
#include "symtab.h"
#include "breakpoint.h"
#include "frame.h"
+#include "command.h"
#include "tui.h"
#include "tuiData.h"
#include "tuiStack.h"
+#include "tuiGeneralWin.h"
+#include "tuiSource.h"
#include "tuiSourceWin.h"
@@ -330,6 +333,9 @@ tuiShowFrameInfo (struct frame_info *fi)
s = find_pc_symtab (fi->pc);
+ if (s == 0)
+ return;
+
sourceAlreadyDisplayed = tuiSourceIsDisplayed (s->filename);
tuiUpdateLocatorDisplay (fi);
for (i = 0; i < (sourceWindows ())->count; i++)