Re: Calling Obj-C methods in gdb under 64 bit
Re: Calling Obj-C methods in gdb under 64 bit
- Subject: Re: Calling Obj-C methods in gdb under 64 bit
- From: "Sean McBride" <email@hidden>
- Date: Wed, 5 Aug 2009 11:52:41 -0400
- Organization: Rogue Research Inc.
On 8/5/09 12:08 PM, Jonathan del Strother said:
>When debugging a 64 bit app, I can't seem to call any objective-c
>methods. I'm used to being able to do, for instance :
>
>(gdb) po [[NSString alloc] initWithData:data encoding:4]
>hello
>
>Under 64-bit builds, that results in 'Target does not respond to this
>message selector.'. I have to use objc_msgSend instead :
>
>(gdb) po objc_msgSend((id)objc_msgSend((id)NSClassFromString(@"NSString"),
>@selector(alloc)), @selector(initWithData:encoding:), data, 4)
>hello
>
>...which gets fairly tiresome.
>
>Is there a magic switch I can turn on that would allow me to use the
>bracket syntax under 64 bit?
Afraid I don't have advice, but I can tell you that you are not alone.
In 64 bit, I can't even get gdb to step into Obj-C methods reliably, so
there's not much hope for fancy stuff IMHO. :(
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden