mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 22:24:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user