Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
That actually seems really doable! Thanks for the info, we'll give that a shot! On Fri, Oct 7, 2016 at 1:40 PM, Sean Callanan wrote: > Once you have Python commands, could you make them into a simple RPC > service and set up a new socket connection to your program from the LLDB > side, all imple

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Sean Callanan via lldb-dev
Once you have Python commands, could you make them into a simple RPC service and set up a new socket connection to your program from the LLDB side, all implemented in Python? Sean > On Oct 7, 2016, at 12:29 PM, Jim Ingham via lldb-dev > wrote: > > Enrico is right. At present, each connectio

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
Ok, thanks for all the info, it's really helpful. We may instead pursue running lldb from the toolchain downloaded from the swift website within our process for the time being and skip having it work in unison with Xcode. We've been having trouble setting that up too however but it's already being

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Jim Ingham via lldb-dev
Enrico is right. At present, each connection to the lldb-rpc-server gets its own SBDebugger, so you wouldn't be able to talk to the debugger that Xcode is using for its process. Even if that was changed, then you'd run into other problems, for instance, at present only one Listener can wait fo

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
https://media4.giphy.com/media/l2Je27KfKp8x71qAo/200.gif On Fri, Oct 7, 2016 at 12:01 PM, Enrico Granata wrote: > It is my understanding that this is not possible in the current > architecture > > On Oct 7, 2016, at 11:55 AM, Rex Fenley wrote: > > We expect to have a rich user experience as thi

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Enrico Granata via lldb-dev
It is my understanding that this is not possible in the current architecture > On Oct 7, 2016, at 11:55 AM, Rex Fenley wrote: > > We expect to have a rich user experience as this tool progresses, using > Python to generate UI will limit our development process. It would be much > simpler if we

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
We expect to have a rich user experience as this tool progresses, using Python to generate UI will limit our development process. It would be much simpler if we could communicate with Xcode's lldb directly from our application. On Fri, Oct 7, 2016 at 11:33 AM, Enrico Granata wrote: > I can see a

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Enrico Granata via lldb-dev
I can see a couple of avenues for your use case: - you can write custom LLDB commands (obligatory reference: http://lldb.llvm.org/python-reference.html ) and have your users type these via the console instead of by clicking buttons - you could write a

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
I'm trying to build a separate debugging tool that can be used in unison with Xcode it will provide buttons that are shortcuts to lldb scripts we write. On Fri, Oct 7, 2016 at 10:45 AM, Enrico Granata wrote: > I am gonna echo Kate's question, but delve one level deeper > > Why do you want to sen

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Enrico Granata via lldb-dev
I am gonna echo Kate's question, but delve one level deeper Why do you want to send commands to LLDB from a different process? We have a bunch of different extension points in LLDB, so it's possible that what you're trying to do is actually already possible > On Oct 7, 2016, at 10:41 AM, Rex Fe

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Rex Fenley via lldb-dev
Hi Kate, I'm trying to connect to the running instance of lldb in Xcode to send commands to it from a different process :) On Fri, Oct 7, 2016 at 10:27 AM, Kate Stone wrote: > The RPC mechanism used in Xcode 8 is not a part of the open source LLDB > project and should be treated as an implement

Re: [lldb-dev] Connecting to lldb-rpc-server

2016-10-07 Thread Kate Stone via lldb-dev
The RPC mechanism used in Xcode 8 is not a part of the open source LLDB project and should be treated as an implementation detail of Xcode. What are you trying to accomplish? Kate Stone k8st...@apple.com  Xcode Low Level Tools > On Oct 6, 2016, at 6:11 PM, Rex Fenle

[lldb-dev] Connecting to lldb-rpc-server

2016-10-06 Thread Rex Fenley via lldb-dev
Hi! I'm trying to connect to Xcode's lldb rpc server but I'm having trouble. This doesn't seem to work to list the hosts. rpcinfo -p lldb-rpc-server Can't contact rpcbind on lldb-rpc-server rpcinfo: RPC: Unknown host Am I doing this correctly? -- Rex Fenley | IOS DEVELOPER Remind.com