Re: [lldb-dev] Setting environment via SBLaunchInfo

2019-12-02 Thread Jim Ingham via lldb-dev
> On Dec 2, 2019, at 4:08 PM, Vadim Chugunov wrote: > > > But I don't think passing lldb's environment variables automatically when > > running a remote process is a sensible thing to do - certainly not as the > > default anyway. If the host and target are different OS'es and maybe > > diff

Re: [lldb-dev] Setting environment via SBLaunchInfo

2019-12-02 Thread Vadim Chugunov via lldb-dev
> But I don't think passing lldb's environment variables automatically when running a remote process is a sensible thing to do - certainly not as the default anyway. If the host and target are different OS'es and maybe different users, etc. lldb's environment may very well not be appropriate for t

Re: [lldb-dev] Setting environment via SBLaunchInfo

2019-12-02 Thread Jim Ingham via lldb-dev
There's a setting (target.inherit-env) that controls whether "process launch" passes its environment variables along with any newly set to the process in question. Sounds like there should also be an lldb.eLaunchFlagInheritEnv that triggers the same behavior from the SB API. But I don't think