[PATCH, Valgrind integration] Automatic addition of --tool=memcheck if needed

Alexander Dymo adymo at mksat.net
Mon Jul 12 19:53:06 UTC 2004


On Friday 09 July 2004 12:58, Simon MARTIN wrote:
> I noticed that with the current CVS version, one has to explicitely pass
> --tool=memcheck to make the "Debug"->"Valgrind memory leak check" work:
> otherwise, nothing happens.
>
> I guess that when the user wants Valgrind to perform a memory leak check,
> he wants the correct tool to be automatically chosen. That's why I propose
> the following patch, which automatically adds "--tool=memcheck" (only if it
> wasn't explicitely done by the user) to the arguments passed to Valgrind in
> the case of a leak check. Tell me if it's OK, useful... If so, I can commit
> it.

There's one problem with that. Valgrind version 2.0.0 will not work if
executed with that param. You need to determine valgrind version first.

-- 
Alexander Dymo
ICST Department, National University of Shipbuilding, Mykolayiv, Ukraine




More information about the KDevelop-devel mailing list