This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] unprotected references to partial symtab (core dump fix)



This is in reference to:

http://sources.redhat.com/ml/gdb-patches/2000-06/msg00231.html

I have (finally) checked this in. Turns out only half of this patch
was needed, the other half made it in as another patch.

Elena


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.

Index: partial-stab.h
===================================================================
RCS file: /cvs/src/src/gdb/partial-stab.h,v
retrieving revision 1.5
diff -c -u -p -r1.5 partial-stab.h
cvs server: conflicting specifications of output style
--- partial-stab.h      2000/08/11 01:47:47     1.5
+++ partial-stab.h      2001/02/19 20:13:17
@@ -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))))
          {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]