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 c93d73b678
commit 8a05feb9d3

View File

@ -549,6 +549,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")