mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
and update exp files accordingly. This works well for x86 and all testcases pass on my machine. New file filter_memcheck to do the work. There is a bit of a ripple here as filter_memcheck requires command line arguments to be passed in. So all users of filter_memcheck (direct or indirect) were updated as well. filter_stderr was simplified as was filter_libc. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12091
37 lines
1.1 KiB
Perl
Executable File
37 lines
1.1 KiB
Perl
Executable File
#! /usr/bin/perl -w
|
|
|
|
use strict;
|
|
|
|
while (<>)
|
|
{
|
|
s/ __getsockname / getsockname /;
|
|
s/ __sigaction / sigaction /;
|
|
s/ __GI___/ __/;
|
|
s/ __([a-z]*)_nocancel / $1 /;
|
|
|
|
# "libSystem*" occurs on Darwin.
|
|
s/\(in \/.*(libc|libSystem).*\)$/(in \/...libc...)/;
|
|
s/\(within \/.*(libc|libSystem).*\)$/(within \/...libc...)/;
|
|
|
|
# Remove the filename -- on some platforms (eg. Linux) it will be in
|
|
# libc, on some (eg. Darwin) it will be in the main executable.
|
|
s/\(below main\) \(.+\)$/(below main)/;
|
|
|
|
# Merge the different C++ operator variations.
|
|
s/(at.*)__builtin_new/$1...operator new.../;
|
|
s/(at.*)operator new\(unsigned(| int| long)\)/$1...operator new.../;
|
|
|
|
s/(at.*)__builtin_vec_new/$1...operator new.../;
|
|
s/(at.*)operator new\[\]\(unsigned(| int| long)\)/$1...operator new[].../;
|
|
|
|
s/(at.*)__builtin_delete/$1...operator delete.../;
|
|
s/(at.*)operator delete\(void\*\)/$1...operator delete.../;
|
|
|
|
s/(at.*)__builtin_vec_delete/$1...operator delete[].../;
|
|
s/(at.*)operator delete\[\]\(void\*\)/$1...operator delete[].../;
|
|
|
|
print;
|
|
}
|
|
|
|
exit 0;
|