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]
Other format: [Raw text]

[patch] Zap NUM_REGS macro from tm-i386.h


Hello,

This zaps one instance of the NUM_REGS macro from tm-i386.h.  Plenty 
more to go.

Committed as obvious.

Andrew
2001-11-18  Andrew Cagney  <ac131313@redhat.com>

	* i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
	* config/i386/tm-i386.h (NUM_REGS): Delete.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.45
diff -p -r1.45 i386-tdep.c
*** i386-tdep.c	2001/11/08 20:26:42	1.45
--- i386-tdep.c	2001/11/18 22:07:48
*************** i386_gdbarch_init (struct gdbarch_info i
*** 1229,1234 ****
--- 1229,1238 ----
    /* NOTE: tm-i386nw.h and tm-i386v4.h override this.  */
    set_gdbarch_frame_chain_valid (gdbarch, file_frame_chain_valid);
  
+   /* NOTE: tm-i386aix.h, tm-i386bsd.h, tm-i386os9k.h, tm-linux.h,
+      tm-ptx.h, tm-symmetry.h currently override this.  Sigh.  */
+   set_gdbarch_num_regs (gdbarch, NUM_GREGS + NUM_FREGS + NUM_SSE_REGS);
+ 
    return gdbarch;
  }
  
Index: config/i386/tm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386.h,v
retrieving revision 1.24
diff -p -r1.24 tm-i386.h
*** tm-i386.h	2001/11/12 22:27:35	1.24
--- tm-i386.h	2001/11/18 22:07:49
*************** extern CORE_ADDR i386_saved_pc_after_cal
*** 124,131 ****
  #define NUM_SSE_REGS (0)
  #endif
  
- #define NUM_REGS (NUM_GREGS + NUM_FREGS + NUM_SSE_REGS)
- 
  /* Largest number of registers we could have in any configuration.  */
  #define MAX_NUM_REGS (16 + 16 + 9)
  
--- 124,129 ----

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