/* Register groupings for GDB, the GNU debugger.
- Copyright (C) 2002-2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2021 Free Software Foundation, Inc.
Contributed by Red Hat.
return 0;
if (group == all_reggroup)
return 1;
- vector_p = TYPE_VECTOR (register_type (gdbarch, regnum));
- float_p = (TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT
- || (TYPE_CODE (register_type (gdbarch, regnum))
+ vector_p = register_type (gdbarch, regnum)->is_vector ();
+ float_p = (register_type (gdbarch, regnum)->code () == TYPE_CODE_FLT
+ || (register_type (gdbarch, regnum)->code ()
== TYPE_CODE_DECFLOAT));
raw_p = regnum < gdbarch_num_regs (gdbarch);
if (group == float_reggroup)
}
/* Note: If you change this, be sure to also update the
- documentation. */
+ documentation. */
fprintf_unfiltered (file, "\n");
struct reggroup *const save_reggroup = &save_group;
struct reggroup *const restore_reggroup = &restore_group;
+void _initialize_reggroup ();
void
-_initialize_reggroup (void)
+_initialize_reggroup ()
{
reggroups_data = gdbarch_data_register_pre_init (reggroups_init);