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

patch for sparc-tdep.c for NetBSD/sparc.




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' */

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