From: Bart Van Assche Date: Sun, 9 Mar 2008 08:46:11 +0000 (+0000) Subject: More information is now printed if a data race is detected in dynamically allocated... X-Git-Tag: svn/VALGRIND_3_4_0~935 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=282ceeaf17355bc842527604ec2d4a5dfe3a533e;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/exp-drd/drd_error.c b/exp-drd/drd_error.c index 20d3aff248..fb6a23d169 100644 --- a/exp-drd/drd_error.c +++ b/exp-drd/drd_error.c @@ -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