This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
patch for sparc-tdep.c for NetBSD/sparc.
- To: gdb-patches at sourceware dot cygnus dot com
- subject: patch for sparc-tdep.c for NetBSD/sparc.
- From: matthew green <mrg at cygnus dot com>
- Date: Thu, 13 Jul 2000 18:25:59 +1000
- organisation: Red Hat, Inc.
i copied the following lines from alphabsd-nat.c, and this allows
gdb-current to successfully configure, build & run under NetBSD/sparc.
would someone please apply this patch?
thanks,
.mrg.
2000-07-13 matthew green <mrg@redhat.com>
* sparc-tdep.c (gregset_t): Define as `struct reg' if undefined.
(fpregset_t): Define as `struct fpreg' if undefined.
Index: sparc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-tdep.c,v
retrieving revision 1.5
diff -p -r1.5 sparc-tdep.c
*** sparc-tdep.c 2000/05/26 23:22:41 1.5
--- sparc-tdep.c 2000/07/13 08:22:49
***************
*** 35,40 ****
--- 35,48 ----
#include <sys/procfs.h>
#endif
+ #ifndef HAVE_GREGSET_T
+ typedef struct reg gregset_t;
+ #endif
+
+ #ifndef HAVE_FPREGSET_T
+ typedef struct fpreg fpregset_t;
+ #endif
+
#include "gdbcore.h"
#include "symfile.h" /* for 'entry_point_address' */