From 282ceeaf17355bc842527604ec2d4a5dfe3a533e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 9 Mar 2008 08:46:11 +0000 Subject: [PATCH] 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 --- exp-drd/drd_error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exp-drd/drd_error.c b/exp-drd/drd_error.c index 20d3aff24..fb6a23d16 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