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: GDB 5.0 won't build on GNU/Linux/sparc


Mark Kettenis wrote:
> 
>    Date: Mon, 22 May 2000 19:24:15 -0700
>    From: Michael Snyder <msnyder@cygnus.com>
> 
>    Well... you're right that their being in sparc-tdep.c is questionable,
>    but I'm not sure they fit any better in sparc-nat.c, unles that file
>    is renamed to sparc-solaris-nat.c.  These functions are specific to
>    /proc, which is (one reason) why they would not build on Linux.
> 
> Well, /proc may indeed be their origin, but some ELF systems that
> don't have the SVR4 /proc provide some of the infrastructure that
> makes supply_gregset() and fill_gregset() usefull too.  Take for
> example Linux/i386 and my upcoming FreeBSD/i386.  Now if the gregset_t
> and fpregset_t on Linux/Sparc don't differ too much from Solaris, it
> may be beneficial too let them share the code.

Interesting!

I noticed that supply_gregset makes some unspoken assumptions 
about the internal layout of a gregset_t.  I was thinking of
cleaning that up, but if it was only for Solaris (where the
assumptions are true) it didn't seem worthwhile.

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