aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-11-18 22:14:13 +0000
committerAndrew Cagney <cagney@redhat.com>2001-11-18 22:14:13 +0000
commitbd1ef5d285d6883228c1d3910c05c1c37eccccb6 (patch)
treea968cbb855651f2a39deb3ecdc941b6bae4be3a7 /gdb/i386-tdep.c
parent76fb44f49a3d475d608e9fcb68391b7cbb8bb022 (diff)
downloadgdb-bd1ef5d285d6883228c1d3910c05c1c37eccccb6.zip
gdb-bd1ef5d285d6883228c1d3910c05c1c37eccccb6.tar.gz
gdb-bd1ef5d285d6883228c1d3910c05c1c37eccccb6.tar.bz2
* i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
* config/i386/tm-i386.h (NUM_REGS): Delete.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index d5cf889..0908273 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -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;
}