Calling Obj-C methods in gdb under 64 bit
Calling Obj-C methods in gdb under 64 bit
- Subject: Calling Obj-C methods in gdb under 64 bit
- From: Jonathan del Strother <email@hidden>
- Date: Wed, 5 Aug 2009 12:08:07 +0100
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?
-Jonathan
_______________________________________________
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