]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
fix for auto-annotating C++ method names (they have :'s in it)
authorDirk Mueller <daywalker@users.sourceforge.net>
Wed, 1 May 2002 21:52:05 +0000 (21:52 +0000)
committerDirk Mueller <daywalker@users.sourceforge.net>
Wed, 1 May 2002 21:52:05 +0000 (21:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@191

cachegrind/cg_annotate.in
vg_annotate.in

index 1a532ca52d5120e75985823b97b82d0a8c4f8d87..088f79b26717bb587b59a85104a0f371bda2fa8e 100644 (file)
@@ -625,7 +625,7 @@ sub print_summary_and_fn_totals ()
 
         # Update the threshold counting
         my $filename = $fn_name;
-        $filename =~ s/:[^:]+$//;    # remove function name
+        $filename =~ s/:.+$//;    # remove function name
         $threshold_files->{$filename} = 1;
         $curr_total += $fn_CC->[$threshold_event_index] 
             if (defined $fn_CC->[$threshold_event_index]);
index 1a532ca52d5120e75985823b97b82d0a8c4f8d87..088f79b26717bb587b59a85104a0f371bda2fa8e 100644 (file)
@@ -625,7 +625,7 @@ sub print_summary_and_fn_totals ()
 
         # Update the threshold counting
         my $filename = $fn_name;
-        $filename =~ s/:[^:]+$//;    # remove function name
+        $filename =~ s/:.+$//;    # remove function name
         $threshold_files->{$filename} = 1;
         $curr_total += $fn_CC->[$threshold_event_index] 
             if (defined $fn_CC->[$threshold_event_index]);