diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-16 22:13:38 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-16 22:13:38 +0000 |
commit | 75fd9bc1ec6f7c44cea2dce02c996c07ab826af8 (patch) | |
tree | 347044a928b598c11219cb472961ecf2b11400f1 /gdb/tui/tuiSource.c | |
parent | a8080b7fbfaf3a5916b4ce95f097a890a48fc878 (diff) | |
download | gdb-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/tuiSource.c')
-rw-r--r-- | gdb/tui/tuiSource.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/tui/tuiSource.c b/gdb/tui/tuiSource.c index 4a39e0a..2f52fc5 100644 --- a/gdb/tui/tuiSource.c +++ b/gdb/tui/tuiSource.c @@ -417,8 +417,9 @@ _hasBreak (char *sourceFileName, int lineNo) (bp != (struct breakpoint *) NULL && bpWithBreak == (struct breakpoint *) NULL); bp = bp->next) - if ((strcmp (sourceFileName, bp->source_file) == 0) && - (lineNo == bp->line_number)) + if (bp->source_file + && (strcmp (sourceFileName, bp->source_file) == 0) + && (lineNo == bp->line_number)) bpWithBreak = bp; return bpWithBreak; |