From 536e2db94714c6c5383f9a6c5999cf5b44f9ecae Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 15 Sep 2020 14:13:18 +1000 Subject: [PATCH] Tools: sim_vehicle.py: add --disable-breakpoints commandline option --- Tools/autotest/sim_vehicle.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 7ada3bf47a..4c6c0d15ad 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -595,6 +595,8 @@ def start_vehicle(binary, opts, stuff, spawns=None): for breakpoint in opts.breakpoint: gdb_commands_file.write("b %s\n" % (breakpoint,)) + if opts.disable_breakpoints: + gdb_commands_file.write("disable\n") if not opts.gdb_stopped: gdb_commands_file.write("r\n") gdb_commands_file.close() @@ -954,6 +956,10 @@ group_sim.add_option("-B", "--breakpoint", action="append", default=[], help="add a breakpoint at given location in debugger") +group_sim.add_option("--disable-breakpoints", + default=False, + action='store_true', + help="disable all breakpoints before starting") group_sim.add_option("-M", "--mavlink-gimbal", action='store_true', default=False,