|
From: Nicholas N. <nj...@cs...> - 2006-08-27 22:32:37
|
On Sat, 26 Aug 2006, Bart Van Assche wrote: > Julian, you made the following comment about drd: > >> - Only print a stack trace if the data address is identified as being >> in a heap block. I tried to find where in your code this is done, >> but failed. > > This is the code that does the error reporting (drd_bitmap3.c): > > VG_(maybe_record_error)(tid1, DataRaceErr, VG_(get_IP)(tid1), "data > race", &dri); > > It was also my desire not to print a stack trace in this case, and have each > data race counted as an error. Is this possible with Valgrind ? I don't think so. You could add a function to m_errormgr.c that did this, eg. VG_(maybe_record_error_no_stacktrace). > By this time I have replaced the above statement by a call to > VG_(message)(...). Nick |