[SCM] Quake 3 engine branch, master, updated. 17a6fcabb9ceb603939f9e9483bb3c33b861029f
Simon McVittie
smcv at debian.org
Thu Oct 14 23:29:53 UTC 2010
The following commit has been merged in the master branch:
commit e93d6806d7ed84672d0c69ec5f83f6b4535bb5a5
Author: Simon McVittie <smcv at debian.org>
Date: Thu Oct 14 23:41:59 2010 +0100
wrapper scripts: use gdb to get a backtrace if OPENARENA_BACKTRACE is set, or run under OPENARENA_DEBUGGER
diff --git a/debian/wrappers/openarena.in b/debian/wrappers/openarena.in
index 638a5f5..b7ecb0d 100644
--- a/debian/wrappers/openarena.in
+++ b/debian/wrappers/openarena.in
@@ -7,6 +7,12 @@ IOQ3DOTDIR=openarena
ENGINE="/usr/lib/ioquake3/${IOQ3BINARY}"
+DEBUGGER="$OPENARENA_DEBUGGER"
+
+if test -n "$OPENARENA_BACKTRACE"; then
+ DEBUGGER="gdb -return-child-result -batch -ex run -ex 'thread apply all bt full' -ex kill -ex quit --args"
+fi
+
# we're a standalone game
CVARS="+set com_standalone 1"
CVARS="$CVARS +set fs_basegame baseoa"
@@ -19,4 +25,4 @@ CVARS="$CVARS +set sv_master1 dpmaster.deathmask.net"
# update.quake3arena.com is pretty irrelevant if you're playing OA
CVARS="$CVARS +set cl_motd 0"
-exec ${ENGINE} ${CVARS} "$@"
+exec ${DEBUGGER} ${ENGINE} ${CVARS} "$@"
--
Quake 3 engine
More information about the Pkg-games-commits
mailing list