Browse Source

Tools: sim_vehicle: make gdb-stopped work again

mission-4.1.18
Peter Barker 8 years ago
parent
commit
e505635ddd
  1. 5
      Tools/autotest/sim_vehicle.py

5
Tools/autotest/sim_vehicle.py

@ -465,7 +465,7 @@ def start_vehicle(binary, autotest, opts, stuff, loc): @@ -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): @@ -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")

Loading…
Cancel
Save