# HG changeset patch # User William Roberts # Date 1279277088 -3600 # Node ID 375cb23d95bae4a5e383621a4dfac45fecaa3339 # Parent cb10ec12dc45b34a94c62c796e72d069cff789dc Avoid matching sub-symbols, e.g. __aeabi_memclr matching __aeabi_memclr4 diff -r cb10ec12dc45 -r 375cb23d95ba tools/summarise_gcc_errors.pl --- a/tools/summarise_gcc_errors.pl Wed Jul 07 15:43:49 2010 +0100 +++ b/tools/summarise_gcc_errors.pl Fri Jul 16 11:44:48 2010 +0100 @@ -483,9 +483,11 @@ } $last_elffile = $elffile; } + my $length = length($symbol); foreach my $line (@last_objdump) { - if (index($line,$symbol) >= 0) + chomp $line; + if (substr($line,-$length) eq $symbol) { push @instances, $line; }