group_sim.add_option("-I","--instance",default=0,type='int',help="instance of simulator")
group_sim.add_option("-V","--valgrind",action='store_true',default=False,help="enable valgrind for memory access checking (very slow!)")
group_sim.add_option("","--callgrind",action='store_true',default=False,help="enable valgrind for performance analysis (very very slow!)")
group_sim.add_option("-T","--tracker",action='store_true',default=False,help="start an antenna tracker instance")
group_sim.add_option("-A","--sitl-instance-args",type='string',default=None,help="pass arguments to SITL instance")
# group_sim.add_option("-R", "--reverse-throttle", action='store_true', default=False, help="reverse throttle in plane")
@ -654,6 +658,9 @@ if cmd_opts.hil:
@@ -654,6 +658,9 @@ if cmd_opts.hil:
ifcmd_opts.valgrind:
print("May not use valgrind with hil")
sys.exit(1)
ifcmd_opts.callgrind:
print("May not use callgrind with hil")
sys.exit(1)
ifcmd_opts.gdborcmd_opts.gdb_stopped:
print("May not use gdb with hil")
sys.exit(1)
@ -665,6 +672,10 @@ if cmd_opts.valgrind and (cmd_opts.gdb or cmd_opts.gdb_stopped):
@@ -665,6 +672,10 @@ if cmd_opts.valgrind and (cmd_opts.gdb or cmd_opts.gdb_stopped):
@ -672,6 +683,9 @@ if cmd_opts.strace and (cmd_opts.gdb or cmd_opts.gdb_stopped):
@@ -672,6 +683,9 @@ if cmd_opts.strace and (cmd_opts.gdb or cmd_opts.gdb_stopped):
ifcmd_opts.straceandcmd_opts.valgrind:
print("valgrind and strace almost certainly not a good idea")
ifcmd_opts.straceandcmd_opts.callgrind:
print("callgrind and strace almost certainly not a good idea")