<div dir="ltr">Yes, exactly. So things like LD_LIBRARY_PATH, PATH and others that are set based on the target linux env. The client doesn't have this information available to manually set them all.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 5, 2017 at 11:44 PM Stephane Sezer <<a href="mailto:sas@cd80.net">sas@cd80.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Which set of env vars did you want the child process to inherit? The env vars of the platform process on the remote?</div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr">On Wed, Jul 5, 2017 at 8:47 AM Christopher Book via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(33,33,33);font-size:13px">Hi, I'm remote debugging to linux (platform select remote-linux), and then launching a process on the target.</span><div style="color:rgb(33,33,33);font-size:13px">> file <my binary><br></div><div style="color:rgb(33,33,33);font-size:13px">> process launch -w /some/dir</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">When I do this, the process is launched but it gets an empty list of environment variables. I've confirmed that lldb and the gdb server both have the vars, but not the target process.</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">I can manually pass environment variables to the target using the '--environment' flag, and this works. But in general I need these to be inherited.</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">Based on online comments about this working on mac, this appears to be a linux-specific bug? Is this expected or known?</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">Thanks,</div><div style="color:rgb(33,33,33);font-size:13px">Chris Book</div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">-- <br>Stephane Sezer</div></div>
</blockquote></div>