Re: how does x86_DEBUG_STATE64 work
Re: how does x86_DEBUG_STATE64 work
- Subject: Re: how does x86_DEBUG_STATE64 work
- From: "Manu ." <email@hidden>
- Date: Thu, 17 Dec 2015 23:51:53 -0800
There is no reason to use the debug version of those structures unless you want to handle the debug registers (DR0-DR7). Those are used for hardware breakpoints.
Haven't touch the Mac kernel in a while but IIRC those structures are only used when creating a thread in a different process (mach threads versus pthread)
Another thing is that those structures also contain other registers and if those aren't set properly, your thread will be DOA.
On Dec 17, 2015 11:16 PM, Gordo Cath <email@hidden> wrote:
Hi,
I tried to create a thread today and when I switched to x86_DEBUG_STATE64 it crashed immediately. (I was also using x86_DEBUG_STATE64_COUNT). I had been using x86_THREAD_STATE64. I couldn't find any documentation on how these 'flavors' work or how they affect threads. How do I use x86_DEBUG_STATE64 and what does it buy me?
Thanks
btw I'm a new apple developer and using Yosemite.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden