1 2 3 4 5 6 7 8 9 10 11 12
#! /bin/bash export LD_LIBRARY_PATH=`pwd` /bin/gdb --batch --command=gdb_script1.txt --args ./_t-rex-64-debug $@ RESULT=$? if [ $RESULT -ne 0 ]; then exit $RESULT fi