Re: [lldb-dev] Remote debugging - unix socket and/or specific port

2017-07-28 Thread Howard Hellyer via lldb-dev
"lldb-dev" wrote on 24/07/2017 16:19:19: > From: Mark Nelson via lldb-dev > To: lldb-dev@lists.llvm.org > Date: 24/07/2017 16:19 > Subject: [lldb-dev] Remote debugging - unix socket and/or specific port > Sent by: "lldb-dev" > > Has there be

Re: [lldb-dev] Remote debugging - unix socket and/or specific port

2017-07-27 Thread Eugene Zemtsov via lldb-dev
Hi Mark, 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. Mentioning of GDB

[lldb-dev] Remote debugging - unix socket and/or specific port

2017-07-24 Thread Mark Nelson via lldb-dev
Has there been any change in this since reported here : http://lists.llvm.org/pipermail/lldb-dev/2016-June/010616.html 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

Re: [lldb-dev] Remote debugging - unix socket and/or specific port

2016-07-07 Thread Adrien Duermael via lldb-dev
Hi Pavel, Thanks for your answer! At least I know itโ€™s not supposed to work as is. Iโ€™ll see if I can do something similar to what you guys did for Android platforms. Thanks again! Cheers, - Adrien Duermael > On Jun 29, 2016, at 5:07 AM, Pavel Labath wrote: > > Hi Adrien, > > I think yo

Re: [lldb-dev] Remote debugging - unix socket and/or specific port

2016-06-29 Thread Pavel Labath via lldb-dev
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 n

[lldb-dev] Remote debugging - unix socket and/or specific port

2016-06-22 Thread Adrien Duermael via lldb-dev
Hi, Iโ€™ve been trying to run lldb-server from within a linux container lately. When I try to attach from outside the container using lldb command, most steps are successful but I canโ€™t launch the process: platform select remote-linux ๐Ÿ‘ platform connect connect://IP:PORT ๐Ÿ‘ target create main ๐Ÿ‘

[lldb-dev] Remote debugging - unix socket and/or specific port

2016-06-22 Thread Adrien Duermael via lldb-dev
Hi, Iโ€™ve been trying to run lldb-server from within a linux container lately. When I try to attach from outside the container using lldb command, most steps are successful but I canโ€™t launch the process: platform select remote-linux ๐Ÿ‘ platform connect connect://IP:PORT ๐Ÿ‘ target create main ๐Ÿ‘