Fix debug targets for sitl run

This commit is contained in:
Lorenz Meier
2015-11-21 17:43:07 +01:00
parent 7c7ef7f767
commit a4a9ff7046

View File

@@ -48,7 +48,7 @@ then
ant ant
java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560 & java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560 &
SIM_PID=`echo $!` SIM_PID=`echo $!`
elif [ "$3" == "gazebo" ] && [ "$no_sim" == "" ] elif [ "$program" == "gazebo" ] && [ "$no_sim" == "" ]
then then
if [ -x "$(command -v gazebo)" ] if [ -x "$(command -v gazebo)" ]
then then
@@ -79,13 +79,13 @@ touch rootfs/eeprom/parameters
# Start Java simulator # Start Java simulator
if [ "$debugger" == "lldb" ] if [ "$debugger" == "lldb" ]
then then
lldb -- mainapp ../../../../${rc_script}_${program} lldb -- mainapp ../../../../${rc_script}_${program}_${model}
elif [ "$debugger" == "gdb" ] elif [ "$debugger" == "gdb" ]
then then
gdb --args mainapp ../../../../${rc_script}_${program} gdb --args mainapp ../../../../${rc_script}_${program}_${model}
elif [ "$debugger" == "ddd" ] elif [ "$debugger" == "ddd" ]
then then
ddd --debugger gdb --args mainapp ../../../../${rc_script}_${program} ddd --debugger gdb --args mainapp ../../../../${rc_script}_${program}_${model}
elif [ "$debugger" == "valgrind" ] elif [ "$debugger" == "valgrind" ]
then then
valgrind ./mainapp ../../../../${rc_script}_${program}_${model} valgrind ./mainapp ../../../../${rc_script}_${program}_${model}