From 34a7837abd953d4a3c4d95a09e9d1fa1551c644b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 31 May 2001 02:58:57 +0000 Subject: [PATCH] * partial-stab.h: Consistently guard against pst being NULL. --- gdb/ChangeLog | 4 ++++ gdb/partial-stab.h | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5ab1171c523..b1054b41652 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-05-29 Christopher Faylor + + * partial-stab.h: Consistently guard against pst being NULL. + 2001-05-29 Alexandre Oliva * symfile.c (compare_psymbols, compare_symbols): Declare using diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index fcfb2ef7c18..5dadf44c7e8 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; -- 2.30.2