From f183072289614841052620d9600702df8626551d Mon Sep 17 00:00:00 2001 From: Hazim Gazov Date: Sun, 15 Aug 2010 03:05:43 +0000 Subject: [PATCH] automatically run inertia in a debugger if a certain env variable is set --- indra/newview/linux_tools/wrapper.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/indra/newview/linux_tools/wrapper.sh b/indra/newview/linux_tools/wrapper.sh index 0108f0058..fd053d02d 100755 --- a/indra/newview/linux_tools/wrapper.sh +++ b/indra/newview/linux_tools/wrapper.sh @@ -61,9 +61,15 @@ fi ## you're building your own viewer, bear in mind that the executable ## in the bin directory will be stripped: you should replace it with ## an unstripped binary before you run. -#export LL_WRAPPER='cgdb --args' -#export LL_WRAPPER='gdb --args' -#export LL_WRAPPER='valgrind --smc-check=all --error-limit=no --log-file=secondlife.vg --leak-check=full --suppressions=/usr/lib/valgrind/glibc-2.5.supp --suppressions=secondlife-i686.supp' +## +## I keep crashing without having GDB running, always run it if an +## environment variable is set. + +if [ $INERT_DEVELOPER -eq 1 ]; then +# export LL_WRAPPER='cgdb --args' + export LL_WRAPPER='gdb --args' +# export LL_WRAPPER='valgrind --smc-check=all --error-limit=no --log-file=secondlife.vg --leak-check=full --suppressions=/usr/lib/valgrind/glibc-2.5.supp --suppressions=secondlife-i686.supp' +fi ## - Avoids an often-buggy X feature that doesn't really benefit us anyway. export SDL_VIDEO_X11_DGAMOUSE=0