aboutsummaryrefslogtreecommitdiff
path: root/gdb/partial-stab.h
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-02-19 20:15:42 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-02-19 20:15:42 +0000
commit8d1de4b7ab418c78cd96cbe36715689c8e49c6d3 (patch)
tree0d03f31e47d7f4593659d1f043cb9108a6d0201e /gdb/partial-stab.h
parent3017564ad27c2e855ef722c33c97f98b2eff3c63 (diff)
downloadgdb-8d1de4b7ab418c78cd96cbe36715689c8e49c6d3.zip
gdb-8d1de4b7ab418c78cd96cbe36715689c8e49c6d3.tar.gz
gdb-8d1de4b7ab418c78cd96cbe36715689c8e49c6d3.tar.bz2
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.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r--gdb/partial-stab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index 6691b75..ff8ef7c 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -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))))
{