Merge commit 'c1d65c7f1f6836d4fe961c0a54ea11ff8fdfc62d' as 'cmake'
This commit is contained in:
14
cmake/launcher-templates/genericlauncher.sh.in
Normal file
14
cmake/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