var scope reduction
[trinity.git] / scripts / analyse-dumps.sh
blobe8ef8e4e3ee77542c9a23101484ec9c630614391
1 #!/bin/sh
3 TRINITY_PATH=${TRINITY_PATH:-.}
5 for core in tmp/trinity.*/tmp/core.*
6 do
7 gdb -batch -n -ex 'bt' $TRINITY_PATH/trinity $core > core.txt
8 SHA=$(cat core.txt| grep -v New\ LWP | grep -v childno | sha1sum | awk '{ print $1 }')
9 cat core.txt > core-$SHA.txt
10 rm -f core.txt
11 done