This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: [eliz@is.elta.co.il: GDB: fine print in 387 info]



On Wed, 7 Jul 1999, Mark Kettenis wrote:

> Since floating point support is working on the Hurd right now I'd like
> to keep it that way :-).  Maybe it is a good idea to include me in the
> discussion and perhaps Jim could send me the FP changes so that I can
> make the necessary changes to the Hurd-specific code.

IMHO, all the different versions of x87 support on the various platforms, 
at least as far as GDB 4.18 sources go, are so close to one another that 
they almost cry for unification.  I compared all of them at some point, 
and they all seem like 95% cut-and-paste and 5% platform-dependent stuff.
(And some of the platform-dependencies are just incompatibilities in the 
order that the FP registers are enumerated in the header files.)

I think it should be very easy to write a bunch of macros that would 
hide any *real* platform-dependent aspects, like how you get the 
registers from the debuggee, and use platform-independent code for 
everything else.

If people agree, the first step in the right direction would be to agree 
on the layout of the information produced by "info float".  The new code 
on i387-tdep.c is different from all the other platforms in this respect.

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