diff options
Diffstat (limited to 'gdb/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 812afeda678..90bcb8e30dd 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -168,7 +168,7 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum, float_p = TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT; /* FIXME: cagney/2003-04-13: Can't yet use gdbarch_num_regs (gdbarch), as not all architectures are multi-arch. */ - raw_p = regnum < NUM_REGS; + raw_p = regnum < gdbarch_num_regs (current_gdbarch); if (group == float_reggroup) return float_p; if (group == vector_reggroup) |