mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +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)."
|
||||
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 "######################################################################"
|
||||
|
||||
Reference in New Issue
Block a user