sitl_run.sh: fix for debugger & valgrind invocation: use eval

Because $sitl_command contains quotes
This commit is contained in:
Beat Küng
2019-01-08 22:11:19 +01:00
committed by Julian Oes
parent beac53d775
commit b6ba7b655a
+5 -5
View File
@@ -128,19 +128,19 @@ then
echo "Not running simulation (\$DONT_RUN is set)."
elif [ "$debugger" == "lldb" ]
then
lldb -- $sitl_command
eval lldb -- $sitl_command
elif [ "$debugger" == "gdb" ]
then
gdb --args $sitl_command
eval gdb --args $sitl_command
elif [ "$debugger" == "ddd" ]
then
ddd --debugger gdb --args $sitl_command
eval ddd --debugger gdb --args $sitl_command
elif [ "$debugger" == "valgrind" ]
then
valgrind --track-origins=yes --leak-check=full -v $sitl_command
eval valgrind --track-origins=yes --leak-check=full -v $sitl_command
elif [ "$debugger" == "callgrind" ]
then
valgrind --tool=callgrind -v $sitl_command
eval valgrind --tool=callgrind -v $sitl_command
elif [ "$debugger" == "ide" ]
then
echo "######################################################################"