blob: dd30ef1004dbaaaa7a386e84ff45f24409485670 [file] [log] [blame]
sewardjcbdddcf2005-03-10 23:23:45 +00001#! /usr/bin/perl -w
2
3use strict;
4
sewardjcbdddcf2005-03-10 23:23:45 +00005while (<>)
6{
7 s/ __getsockname / getsockname /;
8 s/ __sigaction / sigaction /;
9 s/ __GI___/ __/;
10 s/ __([a-z]*)_nocancel / $1 /;
11
rhyskidd2e5051b2015-03-29 05:21:15 +000012 # "lib[S|s]ystem*" occurs on Darwin.
njnf76d27a2009-05-28 01:53:07 +000013 s/\(in \/.*(libc|libSystem).*\)$/(in \/...libc...)/;
14 s/\(within \/.*(libc|libSystem).*\)$/(within \/...libc...)/;
rhyskidd2e5051b2015-03-29 05:21:15 +000015 s/\(in \/.*(libc|libsystem).*\)$/(in \/...libc...)/;
16 s/\(within \/.*(libc|libsystem).*\)$/(within \/...libc...)/;
sewardjcbdddcf2005-03-10 23:23:45 +000017
florian61e7d632013-10-07 20:57:51 +000018 # Filter out dynamic loader
florian17cc6802013-10-08 06:02:01 +000019 s/ \(in \/.*ld-.*so\)$//;
florian61e7d632013-10-07 20:57:51 +000020
njne66ffee2009-02-12 00:51:50 +000021 # Remove the filename -- on some platforms (eg. Linux) it will be in
22 # libc, on some (eg. Darwin) it will be in the main executable.
23 s/\(below main\) \(.+\)$/(below main)/;
tom9e41d8d2006-04-13 12:44:31 +000024
carllb6b52052015-05-13 21:46:47 +000025 # filter out the exact libc-start.c:### line number. (ppc64*)
26 s/\(libc-start.c:[0-9]*\)$/(in \/...libc...)/;
27
njn9cf79b52009-03-10 03:34:00 +000028 # Merge the different C++ operator variations.
29 s/(at.*)__builtin_new/$1...operator new.../;
30 s/(at.*)operator new\(unsigned(| int| long)\)/$1...operator new.../;
31
32 s/(at.*)__builtin_vec_new/$1...operator new.../;
33 s/(at.*)operator new\[\]\(unsigned(| int| long)\)/$1...operator new[].../;
34
35 s/(at.*)__builtin_delete/$1...operator delete.../;
36 s/(at.*)operator delete\(void\*\)/$1...operator delete.../;
37
38 s/(at.*)__builtin_vec_delete/$1...operator delete[].../;
39 s/(at.*)operator delete\[\]\(void\*\)/$1...operator delete[].../;
40
sewardjcbdddcf2005-03-10 23:23:45 +000041 print;
42}
43
44exit 0;