Subject: Re: sigcontext and __gregset_t mapping
To: =?iso-8859-1?q?J=E9r=F4me_Laban?= <jlaban@wanadoo.fr>
From: Klaus Klein <kleink@mibh.de>
List: current-users
Date: 07/05/2004 10:08:06
On Sunday 04 July 2004 20:44, J=E9r=F4me Laban wrote:

> I want to have the registers in the same order to avoid introducing an
> implementation specific remapping of the registers. To be specific, this =
is
> some code for the Mono project that is using sigcontext to get the context
> of a SIGSEGV.

This sounds suspiciously like it should be using siginfo as well.

> If I have to remap the structure, I'll do that but I just wanted to know =
why
> these indexes are not the same.

The i386 ucontext and mcontext layouts were chosen to match the
ones described in the System V ABI Intel386 supplement.  This is
where those structures were invented, predating Linux by a couple
of years.


=2D Klaus