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 | 4b4309fd7953ce46c0a4ed5271f8cc17dbdd77d8 (patch) | |
tree | f72de3b91a13bc9be9d412b3a9d045ace552ad00 /gdb/partial-stab.h | |
parent | 9178365d7d8cfca8a0412cf9e13e5af79cf9b670 (diff) | |
download | gdb-4b4309fd7953ce46c0a4ed5271f8cc17dbdd77d8.tar.gz |
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.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index b8c9de8d1fe..c07d9575e2d 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)))) { |