Re: sigaction stackframe
Re: sigaction stackframe
- Subject: Re: sigaction stackframe
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 18 Jan 2009 18:07:05 +0100
This is not really the stack, but the thread context (with content of
the i386 registers).
When you setup a signal handler, pass the SA_SIGINFO in the sigaction
flags.
Then, you should be able to write a handler with this signature:
void handler(int, siginfo_t *info, ucontext_t *uap);
The ucontext param contains the thread context values.
Le 18 janv. 09 à 17:53, Joel Reymont a écrit :
On Jan 18, 2009, at 4:26 PM, Joel Reymont wrote:
Where can I find the description of the the stack frame passed to a
sigaction handler by the OS?
The stack frame looks like this on Linux, I'm looking for same on
Leopard. Thanks in advance!
+04 SIG#
+08 GS
+0C FS
+10 ES
+14 DS
+18 EDI
+1C ESI
+20 EBP
+24 ESP
+28 EBX
+2C EDX
+30 ECX
+34 EAX
+38 TRAPNO
+3C ERR
+40 EIP
+44 CS
+48 EFL
+4C UESP
+50 SS
---
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
_______________________________________________
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