Re: Determine nested return value from asm in debugger
Re: Determine nested return value from asm in debugger
- Subject: Re: Determine nested return value from asm in debugger
- From: Trygve Inda <email@hidden>
- Date: Thu, 30 Apr 2009 07:29:26 +0000
- Thread-topic: Determine nested return value from asm in debugger
> If you set a breakpoint in -[NSConditionLock
> lockWhenCondition:beforeDate:], you can 'po *(id*)($ebp + 20)'. $ebp
> is the frame pointer. $ebp + 4 points to the return address. $ebp +8
> points to the first argument which, for methods, is always the hidden
> 'self' parameter. $ebp + 12 points to the second argument which is
> the hidden _cmd parameter. $ebp + 16 points to the first non-hidden
> method argument, the condition in this case. And finally, $ebp + 20
> points to the second non-hidden method argument, the date in this case.
>
> Cheers,
> Ken
Many thanks for a wonderful explanation.
Trygve
_______________________________________________
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