]> Zhao Yanbai Git Server - minix.git/commitdiff
unstack: filter for llvm internal symbols.
authorBen Gras <ben@minix3.org>
Mon, 12 Jul 2010 17:03:29 +0000 (17:03 +0000)
committerBen Gras <ben@minix3.org>
Mon, 12 Jul 2010 17:03:29 +0000 (17:03 +0000)
commands/unstack/unstack.sh

index db3f32e9d2e35a8405b9df960b359fd53bc06024..cc6eb49dfebf044e4c610709c20db5807d21166d 100644 (file)
@@ -18,7 +18,7 @@ shift
 
 while [ $# -gt 0 ]
 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 }
             name=$3; offset=$1
          }'