Inspecting Obj-C method parameters from gdb
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