* i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
authorAndrew Cagney <cagney@redhat.com>
Sun, 18 Nov 2001 22:14:13 +0000 (22:14 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 18 Nov 2001 22:14:13 +0000 (22:14 +0000)
* config/i386/tm-i386.h (NUM_REGS): Delete.

gdb/ChangeLog
gdb/config/i386/tm-i386.h
gdb/i386-tdep.c

index 04168d94bdb9ebadab7ae97eed595855993b09f5..727536304cbed092bf9ebc2bc97254609c47b619 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2001-11-18  Kevin Buettner  <kevinb@redhat.com>
 
        * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
index 7661bd8d56de200bf0bac63fc251f3735855496c..8407057ba373db76825cebeaf85ebc76596b50a4 100644 (file)
@@ -124,8 +124,6 @@ extern CORE_ADDR i386_saved_pc_after_call (struct frame_info *frame);
 #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)
 
index d5cf8895e069fcf270421b136455bfd8b0193ab1..0908273c76ed37925891e9685b9f6558928a0b34 100644 (file)
@@ -1229,6 +1229,10 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   /* 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;
 }
 
This page took 0.031852 seconds and 4 git commands to generate.