Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
14
launcher-templates/genericlauncher.sh.in
Normal file
14
launcher-templates/genericlauncher.sh.in
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
bindir=$(pwd)
|
||||
cd @USERFILE_WORKING_DIRECTORY@
|
||||
@USERFILE_ENV_COMMANDS@
|
||||
if test "x$1" = "x--debugger"; then
|
||||
shift
|
||||
cmd="$1"
|
||||
shift
|
||||
echo "r $@" > $bindir/gdbscript
|
||||
echo "bt" >> $bindir/gdbscript
|
||||
gdb $cmd -command=$bindir/gdbscript -batch --return-child-result
|
||||
else
|
||||
$@
|
||||
fi
|
||||
Reference in New Issue
Block a user