Re: objc_exception_throw prior to launching nib file
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