<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Mark,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">A quick look at PlatformPOSIX.cpp, PlatformLinux.cpp and PlatformRemoteGDBServer.cpp shows that Pavel's description of port forwarding situation is still accurate. On Linux currently there is no way to know the port number before LLDB tries actually attach to something. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Mentioning of GDB server protocol shouldn't confuse you, it's just a name of a text protocol LLDB client uses to talk to LLDB server [1]. LLDB tries to be compatible with GDB in this aspect. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">[1] <a href="https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html">https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html</a></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 8:19 AM, Mark Nelson via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Has there been any change in this since reported here :<div><br></div><div><a href="http://lists.llvm.org/pipermail/lldb-dev/2016-June/010616.html" target="_blank">http://lists.llvm.org/<wbr>pipermail/lldb-dev/2016-June/<wbr>010616.html</a></div><div><br></div><div>It is pretty clear that that the remote-linux platform is trying to open additional ports to talk to lldb-server, and if that server is in a container we need to expose them. But what ports, how many, how to specify? All uncertain.</div><div><br></div><div>Looking at the source shows there are some (undocumented?) port commands in lldb-server platform, I'm wondering if this is a solved problem that just doesn't have an easy-to-search-for solution.</div><div><br></div><div>BTW, I may be barking up the wrong tree. I am using lldb on the host and lldb-server on the remote, so the gdb-server protocol shouldn't be in play, at least I don't think so.</div><div><br></div><div>But the problem I see in this configuration sure looks to be one of ports being firewalled.</div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">>Hi Adrien,
>
>I think your diagnosis is correct here. LLDB does indeed create an
>additional connection to the gdb-server instance which is started by the
>platform instance when you start debugging. In case of android platforms we
>already include code to forward this port automatically, but there is no
>such thing for linux -- we just expect the server to be reachable.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><div><div class="m_8876308235360773121gmail_signature"><span style="border-collapse:collapse"><p style="margin:0px"><font face="arial, sans-serif">------------------------------<wbr>------------------------------<wbr>------------------</font></p><p style="margin:0px"><font face="arial, sans-serif">Mark Nelson – <a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=markn@ieee.org" target="_blank">markn@ieee.org</a> - <a href="http://marknelson.us" target="_blank">http://marknelson.us</a></font></p></span></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">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/<wbr>mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif">Thanks,</font><div><font face="verdana, sans-serif">Eugene Zemtsov.</font></div></div></div>
</div>