|
|
@ -68,8 +68,10 @@ setarch_arch=$(cat hack/dfhack_setarch.txt || printf i386)
|
|
|
|
case "$1" in
|
|
|
|
case "$1" in
|
|
|
|
-g | --gdb)
|
|
|
|
-g | --gdb)
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
echo "set environment LD_PRELOAD=\"$PRELOAD_LIB\"" > gdbcmd.tmp
|
|
|
|
echo "set environment LD_LIBRARY_PATH $LD_LIBRARY_PATH" > gdbcmd.tmp
|
|
|
|
echo "set environment MALLOC_PERTURB_=45" >> gdbcmd.tmp
|
|
|
|
echo "set environment LD_PRELOAD $PRELOAD_LIB" >> gdbcmd.tmp
|
|
|
|
|
|
|
|
echo "set environment MALLOC_PERTURB_ 45" >> gdbcmd.tmp
|
|
|
|
|
|
|
|
echo "set startup-with-shell off" >> gdbcmd.tmp
|
|
|
|
gdb $DF_GDB_OPTS -x gdbcmd.tmp ./libs/Dwarf_Fortress "$@"
|
|
|
|
gdb $DF_GDB_OPTS -x gdbcmd.tmp ./libs/Dwarf_Fortress "$@"
|
|
|
|
rm gdbcmd.tmp
|
|
|
|
rm gdbcmd.tmp
|
|
|
|
ret=$?
|
|
|
|
ret=$?
|
|
|
|