On Sat, 2015-04-25 at 00:39 +0900, sean jinu wrote:

> 
>    exit(0);      // this one line is added to kill both valgrind
> itself and target as its child
Valgrind cannot use any glibc function, so there is a re-implementation
of a subset of libc in Valgrind.
The equivalent of exit() is called VG_(exit)().
See pub_tool_libcassert.h


> waiting for any comments or idea on this issue.
It is not very clear what is the advantage to exit at the first error,
so the addition of this feature is unlikely.

Valgrind is usually able to give valid information after the first
error (and there is no 'avalanche' of errors caused by the first error).
That means that with one run, you get several errors to fix,
rather than only one single error, if you would exit after the first
error.

Note also that you can control what exit code Valgrind uses, if
an error is detected:
--error-exitcode=<number> exit code to return if errors found [0=disable]

Philippe




------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to