[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    valgrind/coregrind
From:       Jeremy Fitzhardinge <jeremy () goop ! org>
Date:       2005-03-20 18:40:52
Message-ID: 20050320184052.4F54B16F7D () office ! kde ! org
[Download RAW message or body]

CVS commit by fitzhardinge: 

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


  M +11 -1     vg_stabs.c   1.24


--- valgrind/coregrind/vg_stabs.c  #1.23:1.24
@@ -1029,6 +1029,16 @@ static Bool initSym(SegInfo *si, Sym *sy
                   si, si->stab_typetab, sym, kind, name, name, val);
 
+   /* Find 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;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic