From kde-commits Thu Oct 28 08:15:39 2004 From: Tom Hughes Date: Thu, 28 Oct 2004 08:15:39 +0000 To: kde-commits Subject: VALGRIND_2_2_0_BRANCH: valgrind/coregrind Message-Id: <20041028081539.379AC16CC4 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109895135307123 CVS commit by thughes: 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 M +6 -0 vg_stabs.c 1.14.2.1 --- valgrind/coregrind/vg_stabs.c #1.14:1.14.2.1 @@ -676,4 +676,10 @@ static SymType *stabtype_parser(SegInfo 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; }