Re: [RFC] x86-64 targeted gdb and corefiles

Jason R Thorpe
2002-05-27T19:01:12Z

On Mon, May 27, 2002 at 02:40:29PM -0400, Daniel Jacobowitz wrote:

> Seconded; perhaps with all the attention cross cores have been getting
> lately it's time for a better framework for this? I was thinking
> something like:
>
> struct regset_handler {
> enum type regset_kind; /* general, FP, extended */
> int size;
> void (*supply)();
> void (*fetch)();
> };
>
> See gdbserver's regset handling for a more concrete example of this.
> This could be used to kill all the duplicate copies of core-regset.c
> that have made their way into i386 and powerpc tdep files.

Yah, probably not a bad idea. My only concern would be how do you
register and look up these regset handlers. They need to be tied
to the OS ABI somehow.

--
-- Jason R. Thorpe <thorpej@wasabisystems.com>