2000-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 10 Aug 2000 18:26:56 +0000 (18:26 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 10 Aug 2000 18:26:56 +0000 (18:26 +0000)
From Greg McGary <greg@mcgary.org>:
* partial-stab.h: Don't crash if pst is null.

gdb/ChangeLog
gdb/partial-stab.h

index 72fdad1ba819d754023b2cb190d952c796210fc6..47148e90140663c3f4725d26b6f3492f8d284967 100644 (file)
@@ -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.
index b8c9de8d1fef885c7277ef380bdb1735abfb0442..c07d9575e2d75ca6fa1f167f49ba02e9cff739b9 100644 (file)
@@ -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))))
          {