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

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

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

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

Re: [lldb-dev] get function name from dwarf info

2016-10-07 Thread Abid, Hafiz via lldb-dev
> -Original Message- > From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Carlo > Kok via lldb-dev > Sent: 07 October 2016 14:29 > To: lldb-dev@lists.llvm.org > Subject: [lldb-dev] get function name from dwarf info > > Hi, > > I have a piece of debuginfo containing

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

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

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

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

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.

Re: [lldb-dev] fate of TimeValue

2016-10-07 Thread Pavel Labath via lldb-dev
The llvm-dev thread seems to have fizzed out - I would assume they are not interested in std::chrono. In any case, I've put the more interesting patches I have in my stack up for review, so you have a better idea of what I have in mind. and then we can decide what is the fate of the utility

Re: [lldb-dev] fate of TimeValue

2016-10-07 Thread Pavel Labath via lldb-dev
On 7 October 2016 at 21:42, Mehdi Amini wrote: > >> On Oct 7, 2016, at 9:30 PM, Pavel Labath via lldb-dev >> wrote: >> >> The llvm-dev thread seems to have fizzed out - I would assume they are >> not interested in std::chrono. > > I suggest a

Re: [lldb-dev] fate of TimeValue

2016-10-07 Thread Mehdi Amini via lldb-dev
> On Oct 7, 2016, at 10:19 PM, Pavel Labath wrote: > > On 7 October 2016 at 21:42, Mehdi Amini wrote: >> >>> On Oct 7, 2016, at 9:30 PM, Pavel Labath via lldb-dev >>> wrote: >>> >>> The llvm-dev thread seems to have fizzed

Re: [lldb-dev] fate of TimeValue

2016-10-07 Thread Mehdi Amini via lldb-dev
> On Oct 7, 2016, at 9:30 PM, Pavel Labath via lldb-dev > wrote: > > The llvm-dev thread seems to have fizzed out - I would assume they are > not interested in std::chrono. I suggest a totally different course of action: any utility (except specific to the debugger