Tools: use --track-origins=yes in valgrind for sim_vehicle.py

this allows us to find the original cause of an uninitialised variable
This commit is contained in:
Andrew Tridgell 2019-09-21 11:37:51 +10:00
parent 372eca7dad
commit b07e95aab0

View File

@ -550,6 +550,7 @@ def start_vehicle(binary, autotest, opts, stuff, loc=None):
# adding this option allows valgrind to cope with the overload
# of operator new
cmd.append("--soname-synonyms=somalloc=nouserintercepts")
cmd.append("--track-origins=yes")
if opts.callgrind:
cmd_name += " (callgrind)"
cmd.append("valgrind")