diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-08-10 18:26:56 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-08-10 18:26:56 +0000 |
commit | e84d946b3ae38920c124cba665158104049c8665 (patch) | |
tree | 7609b7a7a2bf5dd4d4721e1b455563c6fbfd1557 | |
parent | 6ce2ac0be0097133458a6da41e62c9510643981f (diff) | |
download | gdb-e84d946b3ae38920c124cba665158104049c8665.zip gdb-e84d946b3ae38920c124cba665158104049c8665.tar.gz gdb-e84d946b3ae38920c124cba665158104049c8665.tar.bz2 |
2000-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Greg McGary <greg@mcgary.org>:
* partial-stab.h: Don't crash if pst is null.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/partial-stab.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 72fdad1..47148e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + + From Greg McGary <greg@mcgary.org>: + * partial-stab.h: Don't crash if pst is null. + 2000-08-10 Mark Kettenis <kettenis@gnu.org> * i387-nat.h (i387_supply_fsave, i387_fill_fsave): Make extern. diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index b8c9de8..c07d957 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -401,7 +401,7 @@ switch (CUR_SYMBOL_TYPE) function relative stabs, or the address of the function's end for old style stabs. */ valu = CUR_SYMBOL_VALUE + last_function_start; - if (pst->texthigh == 0 || valu > pst->texthigh) + if (pst && pst->texthigh == 0 || valu > pst->texthigh) pst->texthigh = valu; break; } @@ -647,7 +647,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)))) { |