diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2001-05-31 02:58:57 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2001-05-31 02:58:57 +0000 |
commit | 34a7837abd953d4a3c4d95a09e9d1fa1551c644b (patch) | |
tree | 80a8c1e5cfee4eb0a5cecd7aa1f1032fa273dda2 /gdb/partial-stab.h | |
parent | 371b7465e40c2715bf7496d2f7950e987f62443e (diff) | |
download | gdb-34a7837abd953d4a3c4d95a09e9d1fa1551c644b.zip gdb-34a7837abd953d4a3c4d95a09e9d1fa1551c644b.tar.gz gdb-34a7837abd953d4a3c4d95a09e9d1fa1551c644b.tar.bz2 |
* partial-stab.h: Consistently guard against pst being NULL.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index fcfb2ef..5dadf44 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -600,10 +600,11 @@ switch (CUR_SYMBOL_TYPE) the bounds created by N_SO symbols. If that's the case use the address of this function as the low bound for the partial symbol table. */ - if (textlow_not_set - || (pst && CUR_SYMBOL_VALUE < pst->textlow - && CUR_SYMBOL_VALUE - != ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)))) + if (pst + && (textlow_not_set + || (pst && CUR_SYMBOL_VALUE < pst->textlow + && CUR_SYMBOL_VALUE + != ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile))))) { pst->textlow = CUR_SYMBOL_VALUE; textlow_not_set = 0; |