From e505635ddde7e51f5354088f835c59bff10e49e6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 22 Nov 2016 22:15:20 +1100 Subject: [PATCH] Tools: sim_vehicle: make gdb-stopped work again --- Tools/autotest/sim_vehicle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 406c5090a0..04ed5f555e 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -465,7 +465,7 @@ def start_vehicle(binary, autotest, opts, stuff, loc): if opts.callgrind: cmd_name += " (callgrind)" cmd.append("valgrind --tool=callgrind") - if opts.gdb: + if opts.gdb or opts.gdb_stopped: cmd_name += " (gdb)" cmd.append("gdb") gdb_commands_file = tempfile.NamedTemporaryFile(delete=False) @@ -473,7 +473,8 @@ def start_vehicle(binary, autotest, opts, stuff, loc): for breakpoint in opts.breakpoint: gdb_commands_file.write("b %s\n" % (breakpoint,)) - gdb_commands_file.write("r\n") + if not opts.gdb_stopped: + gdb_commands_file.write("r\n") gdb_commands_file.close() cmd.extend(["-x", gdb_commands_file.name]) cmd.append("--args")