* d10v-tdep.c (d10v_register_virtual_size): Delete.
(d10v_gdbarch_init): Use generic_register_virtual_size.
* rs6000-tdep.c (rs6000_register_virtual_size): Delete.
(rs6000_gdbarch_init): Use generic_register_virtual_size.
* x86-64-tdep.c (x86_64_register_virtual_size): Delete.
(i386_gdbarch_init): Use generic_register_virtual_size.
+2001-12-11 Michael Snyder <msnyder@redhat.com>
+
+ * d10v-tdep.c (d10v_register_virtual_size): Delete.
+ (d10v_gdbarch_init): Use generic_register_virtual_size.
+ * rs6000-tdep.c (rs6000_register_virtual_size): Delete.
+ (rs6000_gdbarch_init): Use generic_register_virtual_size.
+ * x86-64-tdep.c (x86_64_register_virtual_size): Delete.
+ (i386_gdbarch_init): Use generic_register_virtual_size.
+
2001-12-11 Andrew Cagney <ac131313@redhat.com>
* values.c: Include "gdb_assert.h".
return 2;
}
-/* Number of bytes of storage in the program's representation
- for register N. */
-
-static int
-d10v_register_virtual_size (int reg_nr)
-{
- return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (reg_nr));
-}
-
/* Return the GDB type object for the "standard" data type
of data in register N. */
set_gdbarch_register_byte (gdbarch, d10v_register_byte);
set_gdbarch_register_raw_size (gdbarch, d10v_register_raw_size);
set_gdbarch_max_register_raw_size (gdbarch, 8);
- set_gdbarch_register_virtual_size (gdbarch, d10v_register_virtual_size);
+ set_gdbarch_register_virtual_size (gdbarch, generic_register_virtual_size);
set_gdbarch_max_register_virtual_size (gdbarch, 8);
set_gdbarch_register_virtual_type (gdbarch, d10v_register_virtual_type);
return regsize (reg, tdep->wordsize);
}
-/* Number of bytes of storage in the program's representation
- for register N. */
-
-static int
-rs6000_register_virtual_size (int n)
-{
- return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (n));
-}
-
/* Return the GDB type object for the "standard" data type
of data in register N. */
set_gdbarch_register_byte (gdbarch, rs6000_register_byte);
set_gdbarch_register_raw_size (gdbarch, rs6000_register_raw_size);
set_gdbarch_max_register_raw_size (gdbarch, 8);
- set_gdbarch_register_virtual_size (gdbarch, rs6000_register_virtual_size);
+ set_gdbarch_register_virtual_size (gdbarch, generic_register_virtual_size);
set_gdbarch_max_register_virtual_size (gdbarch, 8);
set_gdbarch_register_virtual_type (gdbarch, rs6000_register_virtual_type);
return builtin_type_long;
}
-/* Number of bytes of storage in the program's representation
- for register REGNO. */
-int
-x86_64_register_virtual_size (int regno)
-{
- return (TYPE_LENGTH (x86_64_register_virtual_type (regno)));
-}
-
/* x86_64_register_convertible is true if register N's virtual format is
different from its raw format. Note that this definition assumes
that the host supports IEEE 32-bit floats, since it doesn't say
(SIZEOF_GREGS + SIZEOF_FPU_REGS + SIZEOF_FPU_CTRL_REGS + SIZEOF_SSE_REGS) */
set_gdbarch_register_bytes (gdbarch,
(18 * 8) + (8 * 10) + (8 * 4) + (8 * 16 + 4));
- set_gdbarch_register_virtual_size (gdbarch, x86_64_register_virtual_size);
+ set_gdbarch_register_virtual_size (gdbarch, generic_register_virtual_size);
set_gdbarch_max_register_virtual_size (gdbarch, 16);
set_gdbarch_register_virtual_type (gdbarch, x86_64_register_virtual_type);