]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
If a name is marked as both a typedef and a tag then ignore the tag marker
authorTom Hughes <tom@compton.nu>
Wed, 22 Sep 2004 22:48:27 +0000 (22:48 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 22 Sep 2004 22:48:27 +0000 (22:48 +0000)
and just treat it as a typedef or valgrind gets very confused.

CCMAIL: 87904-done@bugs.kde.org

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2721

coregrind/vg_stabs.c

index d9e4b13d6e5ab3c0707aeb45972967433a34e208..34a7b26b57d6a79bd6c4f093df6e58dc8813813f 100644 (file)
@@ -1090,6 +1090,7 @@ static Bool initSym(SegInfo *si, Sym *sym, stab_types kind, Char **namep, Int va
       }
 
      out:
+      if (isStruct && isTypedef) isStruct = False;
       sym->type = stabtype_parser(si, NULL, &ty);
       base = VG_(st_basetype)(sym->type, False);