From 7d88144cc745a86947e8836ea1a25a9a495cc450 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 28 Mar 2000 17:44:53 +0000 Subject: [PATCH] * partial-stab.h: Add one more check against corrupted or irregular stabs entry. --- gdb/ChangeLog | 5 +++++ gdb/partial-stab.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * partial-stab.h: Add one more check against corrupted or irregular + stabs entry. + Tue Mar 28 12:23:37 2000 Philippe De Muyter * 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; -- 2.30.2