* config/i386/tm-i386.h (NUM_REGS): Delete.
+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()
#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)
/* 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;
}