Re: [lldb-dev] race condition using gdb-remote over ssh port forwarding

2017-11-28 Thread Christopher Book via lldb-dev
Hi Pavel, I think you are on the right track in that it already does seem to wait for the gdbserver to be up using a pipe. In StartDebugserverProcess it seems like there is a pipe created to tell when the server is running. Here is a comment: // socket_pipe is used by debug server to communi

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Greg Clayton via lldb-dev
svn commit remote.html Sendingremote.html Transmitting file data .done Committing transaction... Committed revision 319213. Please read through these changes at: http://lldb.llvm.org/remote.html and see if there are any mistakes or need for clarificati

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Jim Ingham via lldb-dev
Thanks! Jim > On Nov 28, 2017, at 11:16 AM, Greg Clayton wrote: > > I will update the remote.html web page with any info that is missing! I was > about to go write the web page... Didn't realize we had one. > >> On Nov 28, 2017, at 11:08 AM, Jim Ingham wrote: >> >> Hey, Greg, >> >> If you

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Greg Clayton via lldb-dev
I will update the remote.html web page with any info that is missing! I was about to go write the web page... Didn't realize we had one. > On Nov 28, 2017, at 11:08 AM, Jim Ingham wrote: > > Hey, Greg, > > If you have a moment, could you add what isn't already there of this useful > info to h

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Jim Ingham via lldb-dev
Hey, Greg, If you have a moment, could you add what isn't already there of this useful info to http://lldb.llvm.org/remote.html? The correct answer to this question should be "read http://lldb.llvm.org/remote.html"; but that doesn't seem as immediately useful as your description. Jim > On N

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Greg Clayton via lldb-dev
lldb-server can be launched in two ways: 1 - platform connection mode 2 - debug a single process mode LLDB has two ways to connect to a remote process: 1 - you launch the GDB server yourself and attach to it 2 - you launch lldb-server in platform mode, connect to the platform, and then just debug

Re: [lldb-dev] LLDB support for symbol files (PDB vs DWARF implementation)

2017-11-28 Thread Zachary Turner via lldb-dev
On Tue, Nov 28, 2017 at 6:49 AM Daniel Olivier via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Hi. > > My goal is to process symbol files (i.e. PE-COFF/PDB, ELF/DWARF), and so I > sought to examine how this is done in lldb. However, without first studying > the code for an unreasonable amount of

Re: [lldb-dev] LLDB support for symbol files (PDB vs DWARF implementation)

2017-11-28 Thread Greg Clayton via lldb-dev
> On Nov 28, 2017, at 6:49 AM, Daniel Olivier via lldb-dev > wrote: > > Hi. > > My goal is to process symbol files (i.e. PE-COFF/PDB, ELF/DWARF), and so I > sought to examine how this is done in lldb. However, without first studying > the code for an unreasonable amount of time, I just want

Re: [lldb-dev] race condition using gdb-remote over ssh port forwarding

2017-11-28 Thread Greg Clayton via lldb-dev
> On Nov 28, 2017, at 2:25 AM, Pavel Labath via lldb-dev > wrote: > > On 27 November 2017 at 20:33, Christopher Book via lldb-dev > wrote: >> Greetings, I've been using liblldb to remotely debug to a linux server with >> port forwarding. To do this, I start lldb-server to with --listen >> spe

Re: [lldb-dev] [llvm-dev] Remotely launching a new process with LLDB

2017-11-28 Thread Adrian Prantl via lldb-dev
I would recommend asking this on the lldb mailing list instead. -- adrian > On Nov 26, 2017, at 8:30 AM, Lior Halphon via llvm-dev > wrote: > > I'm trying to remotely launch and debug a new process with lldb without much > success. > > Attaching to an already launched process works well by r

[lldb-dev] LLDB support for symbol files (PDB vs DWARF implementation)

2017-11-28 Thread Daniel Olivier via lldb-dev
Hi. My goal is to process symbol files (i.e. PE-COFF/PDB, ELF/DWARF), and so I sought to examine how this is done in lldb. However, without first studying the code for an unreasonable amount of time, I just want to ask this simple question. Consider the header files that pertain to symbol file

Re: [lldb-dev] race condition using gdb-remote over ssh port forwarding

2017-11-28 Thread Pavel Labath via lldb-dev
On 27 November 2017 at 20:33, Christopher Book via lldb-dev wrote: > Greetings, I've been using liblldb to remotely debug to a linux server with > port forwarding. To do this, I start lldb-server to with --listen > specifying a localhost port, as well as with min-gdbserver-port and > --max-gd