* generic/gdbtk-register.c (get_register_types): Use
register_type instead of REGISTER_VIRTUAL_TYPE.
(get_register): Ditto.
+2003-03-24 Martin M. Hunt <hunt@redhat.com>
+
+ * generic/gdbtk-register.c (get_register_types): Use
+ register_type instead of REGISTER_VIRTUAL_TYPE.
+ (get_register): Ditto.
+
2003-03-17 Keith R Seitz <keiths@redhat.com>
* generic/gdbtk-register.c (get_register): Use frame_register
struct type *reg_vtype;
int i,n;
- reg_vtype = REGISTER_VIRTUAL_TYPE (regnum);
+ reg_vtype = register_type (current_gdbarch, regnum);
+
if (TYPE_CODE (reg_vtype) == TYPE_CODE_UNION)
{
n = TYPE_NFIELDS (reg_vtype);
reg_vtype = regtype[regnum];
if (reg_vtype == NULL)
- reg_vtype = REGISTER_VIRTUAL_TYPE (regnum);
-
+ reg_vtype = register_type (current_gdbarch, regnum);
if (!target_has_registers)
{