From: Elena Zannoni Date: Mon, 19 Feb 2001 20:15:42 +0000 (+0000) Subject: 2001-02-19 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d1de4b7ab418c78cd96cbe36715689c8e49c6d3;p=binutils-gdb.git 2001-02-19 Elena Zannoni From: innadadadavida@yahoo.com: * partial-stab.h (switch): Check that pst is not null before dereferencing it. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a3fdc515f1..311d143e03b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-02-19 Elena Zannoni + + From: innadadadavida@yahoo.com: + * partial-stab.h (switch): Check that pst is not null + before dereferencing it. + 2001-02-19 Elena Zannoni From Andrew Cagney : diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 6691b75a0c5..ff8ef7cf14b 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -600,7 +600,7 @@ switch (CUR_SYMBOL_TYPE) use the address of this function as the low bound for the partial symbol table. */ if (textlow_not_set - || (CUR_SYMBOL_VALUE < pst->textlow + || (pst && CUR_SYMBOL_VALUE < pst->textlow && CUR_SYMBOL_VALUE != ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)))) {