Subject: sigcontext and __gregset_t mapping
To: None <current-users@NetBSD.ORG>
From: =?iso-8859-1?Q?J=E9r=F4me_Laban?= <firstname.lastname@example.org>
Date: 07/04/2004 19:54:48
I'm having trouble on i386 with the newly introduced mcontext.h file =
describes the mapping of the __gregset_t array. This array allows me to =
the value of the registers in a signal handler.
However, to be compliant with other implementations, I have to map the =
to a sigcontext structure. The problem here is that, for example, the
position of EIP in both sigcontext and __gregset_t is not the same.
(position 14 in __gregset_t and position 11 in sigaction)
I checked with some other implementations (linux for instance) and the
disposition of registers shows that the sigcontext structure seems to be
Is this an error in sigcontext ? Is there an other way to get around =