2003-03-01 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 1 Mar 2003 17:59:12 +0000 (17:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 1 Mar 2003 17:59:12 +0000 (17:59 +0000)
commit35cac7cfea5ce05bfb0516b9ca11e3cf6561c1d4
treefd02efded8c8c4461b78a7a556fc594e0bc60194
parent7b83296f2249f4252acecdc5af64595d66daadbd
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.
gdb/ChangeLog
gdb/arch-utils.c
gdb/d10v-tdep.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/regcache.c