Re: [lldb-dev] environment vars not passed through to linux targets
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. On Wed, Jul 5, 2017 at 11:44 PM Stephane Sezerwrote: > Which set of env vars did you want the child process to inherit? The env > vars of the platform process on the remote? > > On Wed, Jul 5, 2017 at 8:47 AM Christopher Book via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> Hi, I'm remote debugging to linux (platform select remote-linux), and >> then launching a process on the target. >> > file >> > process launch -w /some/dir >> >> 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. >> >> 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. >> >> Based on online comments about this working on mac, this appears to be a >> linux-specific bug? Is this expected or known? >> >> Thanks, >> Chris Book >> > ___ >> lldb-dev mailing list >> lldb-dev@lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev >> > -- > -- > Stephane Sezer > ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
Re: [lldb-dev] environment vars not passed through to linux targets
Which set of env vars did you want the child process to inherit? The env vars of the platform process on the remote? On Wed, Jul 5, 2017 at 8:47 AM Christopher Book via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Hi, I'm remote debugging to linux (platform select remote-linux), and then > launching a process on the target. > > file > > process launch -w /some/dir > > 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. > > 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. > > Based on online comments about this working on mac, this appears to be a > linux-specific bug? Is this expected or known? > > Thanks, > Chris Book > ___ > lldb-dev mailing list > lldb-dev@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev > -- -- Stephane Sezer ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
[lldb-dev] Port LLDB to ppc64le (ABIv2) on linux
Hi, I'm interested in porting LLDB to PowerPC 64 little endian (e.g: POWER8 machines) on Linux platform but before starting such work, I wanted to know if somebody is already doing it or also if there is anything prohibitive in doing so (Probably relevant to this question: clang supports POWER8 already, which is good). The interesting resources I found at the moment are: the special debug registers as described on the ISA [1]; dealing with Ptrace API[2]; and also a presentation pointing out how LLDB was ported to MSP430 architecture[3]. Are there any other resources you'd recommend? I tried searching in the mailing list but I didn't find more relevant information. Thanks. Comments are welcome :-) [1] https://openpowerfoundation.org/?resource_lib=power-isa-version-3-0 (Book III, chapter 8, page 1103) [2] http://www.alexonlinux.com/how-debugger-works [3] http://llvm.org/devmtg/2016-03/Tutorials/LLDB-tutorial.pdf ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
[lldb-dev] July LLVM bay-area social is this Thursday!
We'll be at Tied House as usual, starting on Thursday the 6th at 7pm! If you can, help us plan and RSVP here: http://meetu.ps/39SBc7 See everyone there (and, for those who are also celebrating it, have a happy 4th of July)! George ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev