From 0e7c5946f355229e239d6804232534b713200bd2 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 11 Dec 2001 22:16:48 +0000 Subject: 2001-12-11 Michael Snyder * 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. --- gdb/ChangeLog | 9 +++++++++ gdb/d10v-tdep.c | 11 +---------- gdb/rs6000-tdep.c | 11 +---------- gdb/x86-64-tdep.c | 10 +--------- 4 files changed, 12 insertions(+), 29 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 022766d..3568f10 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2001-12-11 Michael Snyder + + * 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 * values.c: Include "gdb_assert.h". diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index fca2848..3002444 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -343,15 +343,6 @@ d10v_register_raw_size (int reg_nr) 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. */ @@ -1512,7 +1503,7 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 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); diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 2d86bfc..70facb4 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1529,15 +1529,6 @@ rs6000_register_raw_size (int n) 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. */ @@ -2295,7 +2286,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 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); diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index dcf5ffd..b27bc0d 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -95,14 +95,6 @@ x86_64_register_virtual_type (int regno) 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 @@ -859,7 +851,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) (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); -- cgit v1.1