* partial-stab.h: Consistently guard against pst being NULL.
authorChristopher Faylor <me+cygwin@cgf.cx>
Thu, 31 May 2001 02:58:57 +0000 (02:58 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Thu, 31 May 2001 02:58:57 +0000 (02:58 +0000)
gdb/ChangeLog
gdb/partial-stab.h

index 5ab1171c5233ee7f4254349e689adf500dc1ab59..b1054b416525f11227925d29915fea4b2c51660a 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-29  Christopher Faylor  <cgf@redhat.com>
+
+       * partial-stab.h: Consistently guard against pst being NULL.
+
 2001-05-29  Alexandre Oliva  <aoliva@redhat.com>
 
        * symfile.c (compare_psymbols, compare_symbols): Declare using
index fcfb2ef7c18c10a0fe919bb4f34995bf754bed23..5dadf44c7e89925eddb74a2d78337b55599f6cbc 100644 (file)
@@ -600,10 +600,11 @@ switch (CUR_SYMBOL_TYPE)
           the bounds created by N_SO symbols.  If that's the case
           use the address of this function as the low bound for
           the partial symbol table.  */
-       if (textlow_not_set
-           || (pst && CUR_SYMBOL_VALUE < pst->textlow
-               && CUR_SYMBOL_VALUE
-               != ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile))))
+       if (pst
+           && (textlow_not_set
+               || (pst && CUR_SYMBOL_VALUE < pst->textlow
+                 && CUR_SYMBOL_VALUE
+                 != ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)))))
          {
            pst->textlow = CUR_SYMBOL_VALUE;
            textlow_not_set = 0;