https://bugs.kde.org/show_bug.cgi?id=411203

--- Comment #3 from Yann Droneaud <y...@droneaud.fr> ---
(In reply to Julian Seward from comment #2)
> (In reply to Yann Droneaud from comment #0)
> 
> > Unfortunately, AFAICT, valgrind doesn't have (yet) support for altering the
> > tracee environment variables.
> 
> Why do you say that?  AFAIK, V passes the env vars to the program it is
> running.

It's not possible to add/remove variables to the tracee's environment only.

For example, if I want to enable LD_VERBOSE=1 (only) for test-program to be
traced, doing "LD_PROFILE=1 valgrind test-program" will affect valgrind too.

strace has the -E option that enable to set environment variables only for the
program to be traced. See
http://man7.org/linux/man-pages/man1/strace.1.html#OPTIONS

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to