diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 20:15:42 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 20:15:42 +0000 |
commit | 13147cc903def52a0bfafd9c3eddd852b9d4e749 (patch) | |
tree | c37f768494ea2c9b7c04938ba5ea3bc3d589a19e /gdb | |
parent | 5f75f801ee2adbf1d64cf745e118861c51ad2dfe (diff) | |
download | gdb-13147cc903def52a0bfafd9c3eddd852b9d4e749.tar.gz |
2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From: innadadadavida@yahoo.com:
* partial-stab.h (switch): Check that pst is not null
before dereferencing it.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/partial-stab.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a3fdc515f1..311d143e03b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + From: innadadadavida@yahoo.com: + * partial-stab.h (switch): Check that pst is not null + before dereferencing it. + +2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + From Andrew Cagney <cagney@b1.cygnus.com>: * symfile.c (add_symbol_file_command): Always initialize my_cleanup using a NULL cleanup. 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)))) { |