Host and target are sparc-unknown-linux-gnu. Stock 5.0 fails to compile with the following message: ../../gdb-5.0/gdb/sparc-tdep.c:1333: parse error before `prgregset_t' ../../gdb-5.0/gdb/sparc-tdep.c:1333: warning: data definition has no type or storage class The following patch fixes the problem and allows to build: diff -ur gdb-5.0/gdb/config/sparc/nm-linux.h gdb-5.0-p3/gdb/config/sparc/nm-linux.h --- gdb-5.0/gdb/config/sparc/nm-linux.h Mon Dec 6 19:56:12 1999 +++ gdb-5.0-p3/gdb/config/sparc/nm-linux.h Sun May 21 14:06:28 2000 @@ -18,7 +18,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <nm-sysv4.h> +/* Our /proc is "better than" (== "incompatible with") svr4 /proc. */ +#undef USE_PROC_FS + +/* SVR4 machines can easily do attach and detach via /proc (procfs.c) + support */ + +#define ATTACH_DETACH + +/* Use SVR4 style shared library support */ + +#define SVR4_SHARED_LIBS #include "solib.h" #define FETCH_INFERIOR_REGISTERS Thank you, --Pete