Skip a stab if it has no ':' at all.

MERGED FROM CVS HEAD



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3445
This commit is contained in:
Nicholas Nethercote 2005-03-26 16:10:49 +00:00
parent 55b62aeffb
commit 23f4ba44cd

View File

@ -1028,8 +1028,18 @@ static Bool initSym(SegInfo *si, Sym *sym, stab_types kind, Char **namep, Int va
VG_(printf)("initSym(si=%p, tab=%p, sym=%p, kind=%d, name=%p \"%s\", val=%d)\n",
si, si->stab_typetab, sym, kind, name, name, val);
/* First first ':' */
ty = VG_(strchr)(name, ':');
while (ty && ty[1] == ':') ty = VG_(strchr)(ty + 2, ':');
/* Skip '::' */
while (ty && ty[1] == ':')
ty = VG_(strchr)(ty + 2, ':');
if (ty == NULL) {
/* there was no ':' */
*namep += VG_(strlen)(name);
return True; /* skip */
}
len = ty - name;