Subject: sigcontext and __gregset_t mapping
To: None <current-users@NetBSD.ORG>
From: =?iso-8859-1?Q?J=E9r=F4me_Laban?= <jlaban@wanadoo.fr>
List: current-users
Date: 07/04/2004 19:54:48
Hi everyone,
=20
I'm having trouble on i386 with the newly introduced mcontext.h file =
wich
describes the mapping of the __gregset_t array. This array allows me to =
get
the value of the registers in a signal handler.
=20
However, to be compliant with other implementations, I have to map the =
array
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
incorrect.
Is this an error in sigcontext ? Is there an other way to get around =
this ?
Thanks,
=20
--
J=E9r=F4me Laban
{Epitech.}
http://www.labtech.epitech.net