From: Tom Hughes Date: Thu, 28 Oct 2004 08:15:38 +0000 (+0000) Subject: The fix for bug 85811 added decoding of many extra negative type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83328bcd639824ee7815ff8fc05adf17864a3e3;p=thirdparty%2Fvalgrind.git 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 --- 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; }