Re: __darwin_i386_exception_state, cr2 and faultvaddr
Re: __darwin_i386_exception_state, cr2 and faultvaddr
- Subject: Re: __darwin_i386_exception_state, cr2 and faultvaddr
- From: Joel Reymont <email@hidden>
- Date: Mon, 19 Jan 2009 22:51:43 +0000
Terry,
On Jan 19, 2009, at 10:35 PM, Terry Lambert wrote:
The GP2 does not get the faulting address on i385 if it is in the 64
bit hole. Otherwise it is the faulting address.
What is GP2?
Is this the EIP in the saved registers or the faultvaddr?
I need to get hold of the return EIP, I think, i.e. the address I will
be going back to.
Don't expect siginfo to not change. Unless you are a debugger, and
rev every time week rev the os, expect your code to break. A call to
getthreadstate is a better bet.
Do you mean getcontext (man ucontext)?
According to the sigaction manpage, the handler has this interface
void handler(int, siginfo_t *info, ucontext_t *uap);
so the user context (thread state?) is given.
What am I missing?
Thanks, Joel
---
http://twitter.com/wagerlabs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden