1 #! /usr/bin/perl -w 2 3 use strict; 4 5 while (<>) 6 { 7 s/ __getsockname / getsockname /; 8 s/ __sigaction / sigaction /; 9 s/ __GI___/ __/; 10 s/ __([a-z]*)_nocancel / $1 /; 11 12 # "lib[S|s]ystem*" occurs on Darwin. 13 s/\(in \/.*(libc|libSystem).*\)$/(in \/...libc...)/; 14 s/\(within \/.*(libc|libSystem).*\)$/(within \/...libc...)/; 15 s/\(in \/.*(libc|libsystem).*\)$/(in \/...libc...)/; 16 s/\(within \/.*(libc|libsystem).*\)$/(within \/...libc...)/; 17 18 # Filter out dynamic loader 19 s/ \(in \/.*ld-.*so\)$//; 20 21 # 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)/; 24 25 # filter out the exact libc-start.c:### line number. (ppc64*) 26 s/\(libc-start.c:[0-9]*\)$/(in \/...libc...)/; 27 28 # 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 41 print; 42 } 43 44 exit 0; 45