This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] unprotected references to partial symtab (core dump fix)
- To: innadadadavida at yahoo dot com, gdb-patches at sources dot redhat dot com
- Subject: [PATCH] unprotected references to partial symtab (core dump fix)
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Mon, 19 Feb 2001 15:16:11 -0500 (EST)
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))))
{