summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2000-03-28 17:44:53 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2000-03-28 17:44:53 +0000
commit9887e91b9c590e2d1463b98bbf7ce95b83a3ebde (patch)
tree7eb9e7838a9f57d2c17dd77938b2f03a27f996c6
parent611ab6262495dd78a63f0aef1a71a3a255d65ef0 (diff)
downloadgdb-9887e91b9c590e2d1463b98bbf7ce95b83a3ebde.tar.gz
* partial-stab.h: Add one more check against corrupted or irregular stabs
entry.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/partial-stab.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bf08a13a0d1..7a74b26bcfd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-28 Christopher Faylor <cgf@cygnus.com>
+
+ * partial-stab.h: Add one more check against corrupted or irregular
+ stabs entry.
+
Tue Mar 28 12:23:37 2000 Philippe De Muyter <phdm@macqel.be>
* gnu-regex.c (regerror): Function renamed from `__regerror'.
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index 87ab12ac304..9c4be680a2b 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -393,7 +393,7 @@ switch (CUR_SYMBOL_TYPE)
#ifdef DBXREAD_ONLY
/* See if this is an end of function stab. */
- if (CUR_SYMBOL_TYPE == N_FUN && *namestring == '\000')
+ if (pst && CUR_SYMBOL_TYPE == N_FUN && *namestring == '\000')
{
unsigned long valu;