• 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: Re: ___spin_lock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: ___spin_lock


  • Subject: Re: Re: ___spin_lock
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 13 Dec 2006 10:46:59 -0800

On 12/13/06, alex <email@hidden> wrote:


To answer your question:  __spin_lock is usually called internally when you
attempt to take a lock.  If you look at the source code for the pthreads
implementation you will see that the code first tries to spin on the lock
before blocking the thread to wait for it.


If the offset from __spin_lock + xxxx is huge than you can assume the stack is not accurate.


Also, if it makes you feel any better I too get the error about not being able to locate cpu_capabilities.h and I also tend to crash gdb about 5 times a day doing simple work. There is nothing worse than not being able to trust your debugger but this is something you will get used to on the Mac. There has never been a good Mac debugger (other than Macsbug, IMHO).

Using gdb against a product built with DWARF symbols work well in my experience (better then STABS), give that a try if you aren't already.

Also having the appropriate kernel debug kit installed and ideally
with access to related source from Darwin can greatly improve your
ability to debug into Mac OS X code base (at least aspects of it).

-Shawn
_______________________________________________
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


  • Follow-Ups:
    • Re: Re: ___spin_lock
      • From: alex <email@hidden>
References: 
 >___spin_lock (From: Perry Winkel <email@hidden>)
 >Re: ___spin_lock (From: "Shawn Erickson" <email@hidden>)
 >Re: ___spin_lock (From: Perry Winkel <email@hidden>)

  • Prev by Date: Re: ___spin_lock
  • Next by Date: Re: 4 vs 8 alignment
  • Previous by thread: Re: ___spin_lock
  • Next by thread: Re: Re: ___spin_lock
  • Index(es):
    • Date
    • Thread