• 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: Immediate Nib Loading Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Immediate Nib Loading Error (From: Steve Cronin <email@hidden>)
 >Re: Immediate Nib Loading Error (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: ibtool crash when run from root session (via a launch daemon)
  • Next by Date: Re: project (created on 3.1) on 2.5 creates app that cant open xib
  • Previous by thread: Re: Immediate Nib Loading Error
  • Next by thread: Re: Shark + Intel compilers = no source view?
  • Index(es):
    • Date
    • Thread