2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Feb 2001 20:15:42 +0000 (20:15 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Feb 2001 20:15:42 +0000 (20:15 +0000)
From: innadadadavida@yahoo.com:
* partial-stab.h (switch): Check that pst is not null
  before dereferencing it.

gdb/ChangeLog
gdb/partial-stab.h

index 5a3fdc515f165d0e2fabf31a4d687738cad4be3a..311d143e03b38a4e366102b226e8135c0b3c49c0 100644 (file)
@@ -1,3 +1,9 @@
+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>:
index 6691b75a0c5c60d8ad20466a8e953a3b8d9ab811..ff8ef7cf14ba82251822577a0dac7da235c891b6 100644 (file)
@@ -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))))
          {