This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: GDB 5.0 won't build on GNU/Linux/sparc
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.
If (indeed) sparc-nat.c is peculiar to Solaris, then we could move
all of the #if (USE_PROC_FS) code from sparc-tdep.c to there.
Whell, USE_PROC_FS is certainly something that's only relevant for the
host, so it shouldn't be used in sparc-tdep.c :-).
Mark