• 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
Calling Obj-C methods in gdb under 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Calling Obj-C methods in gdb under 64 bit
      • From: Nick Zitzmann <email@hidden>
    • Re: Calling Obj-C methods in gdb under 64 bit
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: XCode breaking where no breakpoint set
  • Next by Date: Re: XCode breaking where no breakpoint set
  • Previous by thread: Re: Re: XCode breaking where no breakpoint set
  • Next by thread: Re: Calling Obj-C methods in gdb under 64 bit
  • Index(es):
    • Date
    • Thread