From b6ba7b655aff9a273a4643b2c3e3a76d1098b8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 8 Jan 2019 22:11:19 +0100 Subject: [PATCH] sitl_run.sh: fix for debugger & valgrind invocation: use eval Because $sitl_command contains quotes --- Tools/sitl_run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index a9081c5f02..ad81dfbca7 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -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 "######################################################################"