• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling Obj-C methods in gdb under 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Calling Obj-C methods in gdb under 64 bit (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: XCode breaking where no breakpoint set
  • Next by Date: Re: Instruments' ObjectAlloc: Can identify objects still living?
  • Previous by thread: Calling Obj-C methods in gdb under 64 bit
  • Next by thread: Re: Calling Obj-C methods in gdb under 64 bit
  • Index(es):
    • Date
    • Thread