On Thu, Dec 10, 2009 at 2:12 PM, Aleksander <[email protected]> wrote: >> See also the Valgrind manual for more information about the >> DRD_TRACE_VAR() macro. > > I looked at the online manual, and for DRD_TRACE_VAR() it says I should > specify an "address range". I don't understand that quite well, though. Is it > just > putting DRD_TRACE_VAR(variable) in the code? By "address range" is meant > the address range occupied by the whole variable?
Indeed. I will update the DRD manual to make it more clear -- thanks for reporting this. You can find an example in the regression test program drd/tests/omp_prime.c: ... int total = 0; ... DRD_TRACE_VAR(total); ... The above trace statement is equivalent to ANNOTATE_TRACE_MEMORY(&total). Bart. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
