More information is now printed if a data race is detected in dynamically allocated memory.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7606
This commit is contained in:
Bart Van Assche
2008-03-09 08:46:11 +00:00
parent 0c2d74a0be
commit 282ceeaf17

View File

@@ -248,6 +248,9 @@ void drd_report_data_race2(Error* const err, const DataRaceErrInfo* const dri)
}
else if (ai.akind == eMallocd && ai.lastchange)
{
VG_(message)(Vg_UserMsg,
"Address 0x%08lx is at offset %ld. Allocation context:",
dri->addr, ai.rwoffset);
VG_(pp_ExeContext)(ai.lastchange);
}
else