Re: Immediate Nib Loading Error
Re: Immediate Nib Loading Error
- Subject: Re: Immediate Nib Loading Error
- From: Ken Thomases <email@hidden>
- Date: Tue, 6 Jan 2009 23:08:53 -0600
On Jan 6, 2009, at 10:50 PM, Kyle Sluder wrote:
On Tue, Jan 6, 2009 at 11:38 PM, Ken Thomases <email@hidden>
wrote:
This is not correct, generally. Typically, gdb breaks into
functions after
their frame pointer has been set up. At that time, $ebp points to
the old
frame pointer, $ebp+4 points to the return address, $ebp+8 points
to the
first parameter (self for Obj-C methods), $ebp+12 is the second
parameter
(cmd), and $ebp+16 is the third parameter, etc.
Aha, I see where I was confused:
http://developer.apple.com/technotes/tn2004/
tn2124.html#SECARCHITECTURE
So is the advice in the technote generally incorrect?
No, it looks correct to me. It illustrates both a breakpoint before
and after the frame has been set up. (The "before" case use $esp
rather than $ebp.) It's also dealing with a plain C function, rather
than an Objective-C method. But it all looks correct, and you can
probably reproduce it yourself.
Regards,
Ken
_______________________________________________
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