diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-01 17:59:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-01 17:59:12 +0000 |
commit | 35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4 (patch) | |
tree | fd02efded8c8c4461b78a7a556fc594e0bc60194 /gdb/d10v-tdep.c | |
parent | 7b83296f2249f4252acecdc5af64595d66daadbd (diff) | |
download | gdb-35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4.zip gdb-35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4.tar.gz gdb-35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4.tar.bz2 |
2003-03-01 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (register_type): New function with predicate.
(REGISTER_VIRTUAL_TYPE): Change to function with predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* arch-utils.c (generic_register_byte): Use generic_register_size.
(generic_register_size): When available, use
gdbarch_register_type.
* regcache.c (init_regcache_descr): When available, initialize the
register type array using gdbarch_register_type. If the
architecture supplies gdbarch_register_type, do not use the legacy
regcache layout.
* d10v-tdep.c (d10v_register_type): Replace
d10v_register_virtual_type.
(d10v_gdbarch_init): Set register_type instead of
register_virtual_type.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r-- | gdb/d10v-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index da491b7..3c1852a 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -348,7 +348,7 @@ d10v_register_raw_size (int reg_nr) of data in register N. */ static struct type * -d10v_register_virtual_type (int reg_nr) +d10v_register_type (struct gdbarch *gdbarch, int reg_nr) { if (reg_nr == PC_REGNUM) return builtin_type_void_func_ptr; @@ -1652,7 +1652,7 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_max_register_raw_size (gdbarch, 8); set_gdbarch_register_virtual_size (gdbarch, generic_register_size); set_gdbarch_max_register_virtual_size (gdbarch, 8); - set_gdbarch_register_virtual_type (gdbarch, d10v_register_virtual_type); + set_gdbarch_register_type (gdbarch, d10v_register_type); set_gdbarch_ptr_bit (gdbarch, 2 * TARGET_CHAR_BIT); set_gdbarch_addr_bit (gdbarch, 32); |