From e83328bcd639824ee7815ff8fc05adf17864a3e3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 28 Oct 2004 08:15:38 +0000 Subject: [PATCH] The fix for bug 85811 added decoding of many extra negative type numbers in stabs and also removed the expectation of a trailing semicolon after the type number as gcc didn't seem to be putting one in. It seems that older gcc's do add one however, so we now skip one if it is there. MERGED FROM HEAD git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2864 --- coregrind/vg_stabs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coregrind/vg_stabs.c b/coregrind/vg_stabs.c index 59bc7e5fed..a815f174fd 100644 --- a/coregrind/vg_stabs.c +++ b/coregrind/vg_stabs.c @@ -675,6 +675,12 @@ static SymType *stabtype_parser(SegInfo *si, SymType *def, Char **pp) type = NULL; break; } + /* Different versions of gcc seem to disagree about whether a + negative type is followed by a semicolon or not, and the stabs + spec (susch as it is) is not clear either so we will skip a + semicolon if there is one. */ + if (*p == ';') + p++; break; } -- 2.47.2