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.

CCMAIL: 88703-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2720
This commit is contained in:
Tom Hughes
2004-09-19 10:30:36 +00:00
parent 0067b11b99
commit ca05bfd7ec

View File

@@ -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;
}