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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com