unstack: filter for llvm internal symbols.

This commit is contained in:
Ben Gras 2010-07-12 17:03:29 +00:00
parent 78ce6f86f7
commit 4ff8fdba57

View file

@ -18,7 +18,7 @@ shift
while [ $# -gt 0 ] while [ $# -gt 0 ]
do dec="`printf %d $1`" do dec="`printf %d $1`"
$NM -n $executable | grep ' [Tt] ' | awk ' $NM -n $executable | grep ' [Tt] [^.]' | awk '
{ if($1 > '$dec') { printf "%s+0x%x\n", name, '$dec'-offset; exit } { if($1 > '$dec') { printf "%s+0x%x\n", name, '$dec'-offset; exit }
name=$3; offset=$1 name=$3; offset=$1
}' }'