From ca05bfd7ec6fbf222eb9852a51bea3cf621cd89a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 19 Sep 2004 10:30:36 +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. CCMAIL: 88703-done@bugs.kde.org git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2720 --- coregrind/vg_stabs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coregrind/vg_stabs.c b/coregrind/vg_stabs.c index 05303aef3..d9e4b13d6 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; }