This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Mon, May 27, 2002 at 12:01:11PM -0700, Jason R Thorpe wrote:
> 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.

You just said the "how" yourself :)

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]