fix for auto-annotating C++ method names (they have :'s in it)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@191 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
index 1a532ca..088f79b 100644
--- a/cachegrind/cg_annotate.in
+++ b/cachegrind/cg_annotate.in
@@ -625,7 +625,7 @@
 
         # 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]);