With the below command, valgrind will only analyse the shell sh.
If you want to analyse what is launched by the shell, then you have
to give the option --trace-children=yes
Philippe
On Wed, 2017-04-05 at 01:08 +0000, Wuweijia wrote:
> no, I ran the valgrind on sh, but sh call applicant test0; test0 is the
> external tools
>
> -----邮件原件-----
> 发件人: Alex Bligh [mailto:[email protected]]
> 发送时间: 2017年4月2日 23:13
> 收件人: Wuweijia <[email protected]>
> 抄送: Alex Bligh <[email protected]>; [email protected];
> Fanbohao <[email protected]>
> 主题: Re: [Valgrind-users] [Help] There is the problem.
>
>
> > On 1 Apr 2017, at 12:22, Wuweijia <[email protected]> wrote:
> >
> > I ran the valgrind with sh cmd. There is no output. That is why?
> >
> >
> > Run the valgrind cmd: valgrind --xml=yes --xml-file=./r.xml sh -c ./test0
>
> You're running valgrind on sh, not on test0. Is that intentional?
>
> --
> Alex Bligh
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users