mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
Add debug targets to SITL run
This commit is contained in:
+9
-1
@@ -4,4 +4,12 @@ cd build_posix_sitl_simple/src/firmware/posix
|
||||
mkdir -p rootfs/fs/microsd
|
||||
mkdir -p rootfs/eeprom
|
||||
touch rootfs/eeprom/parameters
|
||||
./mainapp ../../../../$1
|
||||
if [ "$2" == "lldb" ]
|
||||
then
|
||||
lldb -- mainapp ../../../../$1
|
||||
elif [ "$2" == "gdb" ]
|
||||
then
|
||||
gdb -- mainapp ../../../../$1
|
||||
else
|
||||
./mainapp ../../../../$1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user