• 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: objc_exception_throw prior to launching nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc_exception_throw prior to launching nib file


  • Subject: Re: objc_exception_throw prior to launching nib file
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 22 Apr 2009 14:28:59 -0600


On Apr 22, 2009, at 2:20 PM, Daniel Child wrote:

(gdb) po *(int *)($ebp+8)
Cannot access memory at address 0x1
(gdb)


Something's still not right here. On Intel 32, $ebp+8 points to the first argument in a function call, which would be the NSException object passed into objc_exception_throw().

Are you sure you are trying this after, and **only** after, the debugger hits objc_exception_throw(), but before continuing execution? If so, are you sure you are looking at the top of the stack?

If it helps, I always put the following two debugger commands into my objc_exception_throw breakpoints:

po *(int *)($ebp+8)
po $rdi

(The latter is for debugging 64-bit apps, since there's apparently no way to set debugger commands on a per-architecture basis.)

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: objc_exception_throw prior to launching nib file
      • From: Daniel Child <email@hidden>
References: 
 >objc_exception_throw prior to launching nib file (From: Daniel Child <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Nick Zitzmann <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Daniel Child <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Nick Zitzmann <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Daniel Child <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Nick Zitzmann <email@hidden>)
 >Re: objc_exception_throw prior to launching nib file (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: Really big files and encodings
  • Next by Date: Identical Attributes, Only one works
  • Previous by thread: Re: objc_exception_throw prior to launching nib file
  • Next by thread: Re: objc_exception_throw prior to launching nib file
  • Index(es):
    • Date
    • Thread