/* Register groupings for GDB, the GNU debugger.
- Copyright (C) 2002-2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2020 Free Software Foundation, Inc.
Contributed by Red Hat.
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))
+ 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)
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);