• 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: Determine nested return value from asm in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Determine nested return value from asm in debugger (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Determine nested return value from asm in debugger
  • Next by Date: Re: Localizing without Xcode UI
  • Previous by thread: Re: Determine nested return value from asm in debugger
  • Next by thread: Re: Determine nested return value from asm in debugger
  • Index(es):
    • Date
    • Thread