mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 10:17:45 +08:00
sitl_run.sh: fix for debugger & valgrind invocation: use eval
Because $sitl_command contains quotes
This commit is contained in:
+5
-5
@@ -128,19 +128,19 @@ then
|
|||||||
echo "Not running simulation (\$DONT_RUN is set)."
|
echo "Not running simulation (\$DONT_RUN is set)."
|
||||||
elif [ "$debugger" == "lldb" ]
|
elif [ "$debugger" == "lldb" ]
|
||||||
then
|
then
|
||||||
lldb -- $sitl_command
|
eval lldb -- $sitl_command
|
||||||
elif [ "$debugger" == "gdb" ]
|
elif [ "$debugger" == "gdb" ]
|
||||||
then
|
then
|
||||||
gdb --args $sitl_command
|
eval gdb --args $sitl_command
|
||||||
elif [ "$debugger" == "ddd" ]
|
elif [ "$debugger" == "ddd" ]
|
||||||
then
|
then
|
||||||
ddd --debugger gdb --args $sitl_command
|
eval ddd --debugger gdb --args $sitl_command
|
||||||
elif [ "$debugger" == "valgrind" ]
|
elif [ "$debugger" == "valgrind" ]
|
||||||
then
|
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" ]
|
elif [ "$debugger" == "callgrind" ]
|
||||||
then
|
then
|
||||||
valgrind --tool=callgrind -v $sitl_command
|
eval valgrind --tool=callgrind -v $sitl_command
|
||||||
elif [ "$debugger" == "ide" ]
|
elif [ "$debugger" == "ide" ]
|
||||||
then
|
then
|
||||||
echo "######################################################################"
|
echo "######################################################################"
|
||||||
|
|||||||
Reference in New Issue
Block a user