• 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
Inspecting Obj-C method parameters from gdb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inspecting Obj-C method parameters from gdb


  • Subject: Inspecting Obj-C method parameters from gdb
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 6 May 2008 11:12:11 -0400
  • Organization: Rogue Research

Hi all,

I've read conflicting info in TN2124 (Debugging Magic) and the list
archives, so I'm hoping someone can straighten this out. :)

If I'm debugging Obj-C code for which I don't have source, how can I
inspect method parameters?  My understanding is on ppc 'self' is in $r3
and '_cmd' (the method selector) is in $r4.

On i386, I've seen some references to 'esp + 4' and others to 'ebp +
8'.  But I'm not sure which is correct.

And as for ppc64 and x86_64, I can't find much info at all.

Thanks,

--
____________________________________________________________
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

  • Follow-Ups:
    • Re: Inspecting Obj-C method parameters from gdb
      • From: "Clark Cox" <email@hidden>
    • Re: Inspecting Obj-C method parameters from gdb
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Setting up target dependency
  • Next by Date: Weird Xcode alert
  • Previous by thread: Re: Setting up target dependency
  • Next by thread: Re: Inspecting Obj-C method parameters from gdb
  • Index(es):
    • Date
    • Thread