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]

RFA: i386/tm-nsbd.h, i386/nm-nbsd.h


I submit the enclosed patch for approval.  These changes enable
floating point register support on NetBSD/i386.

        --jtc

2000-03-21  J.T. Conklin  <jtc@redback.com>

	* i386/tm-nbsd.h (NUM_REGS): Removed.
	(HAVE_I387_REGS): Defined.
	* i386/nm-nbsd.h (FLOAT_INFO): Removed.

Index: tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-nbsd.h,v
retrieving revision 1.1.1.2
diff -c -3 -p -r1.1.1.2 tm-nbsd.h
*** tm-nbsd.h	1999/07/07 20:13:21	1.1.1.2
--- tm-nbsd.h	2000/03/21 20:22:36
***************
*** 21,31 ****
  #ifndef TM_NBSD_H
  #define TM_NBSD_H
  
  #include "i386/tm-i386bsd.h"
  #include "tm-nbsd.h"
- 
- #undef NUM_REGS
- #define NUM_REGS 16
  
  #define JB_ELEMENT_SIZE sizeof(int)	/* jmp_buf[_JBLEN] is array of ints */
  #define JB_PC	0		/* Setjmp()'s return PC saved here */
--- 21,30 ----
  #ifndef TM_NBSD_H
  #define TM_NBSD_H
  
+ #define HAVE_I387_REGS
+ 
  #include "i386/tm-i386bsd.h"
  #include "tm-nbsd.h"
  
  #define JB_ELEMENT_SIZE sizeof(int)	/* jmp_buf[_JBLEN] is array of ints */
  #define JB_PC	0		/* Setjmp()'s return PC saved here */
Index: nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-nbsd.h,v
retrieving revision 1.1.1.2
diff -c -3 -p -r1.1.1.2 nm-nbsd.h
*** nm-nbsd.h	1999/07/07 20:12:53	1.1.1.2
--- nm-nbsd.h	2000/03/21 20:22:36
***************
*** 24,31 ****
  /* Get generic NetBSD native definitions. */
  #include "nm-nbsd.h"
  
- /* #define FLOAT_INFO   { i386_float_info(); } */
- 
  #define REGISTER_U_ADDR(addr, blockend, regno) \
  	(addr) = i386_register_u_addr ((blockend),(regno));
  
--- 24,29 ----


-- 
J.T. Conklin
RedBack Networks

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