gdb --exec=$1 --command=cmd.gdb --batch > $1.tmp
nl=`cat $1.tmp | wc -l`
nl=`expr $nl - 2`
head -$nl $1.tmp
