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

2016-10-07 Thread Rex Fenley via lldb-dev
t; should probably also experiment with that to make sure that's possible > before you go too far down this route. > > > > Jim > > > > > >> On Oct 7, 2016, at 12:05 PM, Rex Fenley via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> > >

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

2016-10-07 Thread Rex Fenley via lldb-dev
nd tool (lldb-rpc-server) > to connect to the Window Server and put up UI. I haven't tried that since > I worked on Tcl/Tk way back in the day, so it may be easier now. But you > should probably also experiment with that to make sure that's possible > before you go too

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

2016-10-07 Thread Rex Fenley via lldb-dev
Enrico Granata w >> rote: >> >>> 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'

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

2016-10-07 Thread Rex Fenley via lldb-dev
vel 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

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

2016-10-07 Thread Rex Fenley via lldb-dev
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 Fenley via lldb-dev < > ll

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

2016-10-07 Thread Rex Fenley via lldb-dev
eated 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 Fenley via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > Hi! I'm trying to connect to

[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

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
quot;? Is there an option we could add to lldb to avoid >> using "$" and still have variables and data-structures globally accessible? >> I notice that within "repl" "$" it's not necessary to use any "$" >> variables, is there a way to elevate the l

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
; and still have variables and data-structures globally accessible? I notice > that within "repl" "$" it's not necessary to use any "$" variables, is > there a way to elevate the logic "repl" uses into expr? > > > > On Wed, Oct 5, 2016 at

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
ate the logic "repl" uses into expr? On Wed, Oct 5, 2016 at 11:29 AM, Kate Stone wrote: > On Oct 5, 2016, at 10:14 AM, Rex Fenley via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > Maybe I have that incorrectly, this does seem to work when using lldb from > Xcode&

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
evel -- NSString *string = [NSString > stringWithUTF8String: "This is a string"]; > > (lldb) expr string > > (__NSCFString *) $0 = 0x0001002001b0 @"This is a string" > > > > Please file a bug about the problem with ObjC constant strings. > > &g

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
ing"]; >> (lldb) expr string >> (__NSCFString *) $0 = 0x0001002001b0 @"This is a string" >> >> Please file a bug about the problem with ObjC constant strings. >> >> Jim >> >> >> > On Oct 4, 2016, at 3:57 PM, Rex Fenley via lldb-de

Re: [lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-05 Thread Rex Fenley via lldb-dev
le a bug about the problem with ObjC constant strings. > > Jim > > > > On Oct 4, 2016, at 3:57 PM, Rex Fenley via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > Hey lldb team! > > > > I'm trying to use `expr --top-level` from lld

[lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

2016-10-04 Thread Rex Fenley via lldb-dev
Hey lldb team! I'm trying to use `expr --top-level` from lldb in Xcode but it throws errors like the following: (lldb) expression --top-level -- NSString *str = @"This is a string"; Error [IRForTarget]: Couldn't replace an Objective-C constant string with a dynamic string error: cannot import uns