From: Andrew Cagney Date: Sun, 13 Apr 2003 22:34:27 +0000 (+0000) Subject: 2003-04-13 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b5e151c9dbed18d0918c9ff0f199bce4a494339;p=binutils-gdb.git 2003-04-13 Andrew Cagney * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead of gdbarch_num_regs. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3ec006121d6..7465e4acc88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-13 Andrew Cagney + + * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead + of gdbarch_num_regs. + 2003-04-13 Andrew Cagney * frame.h: Mention what replaced what in "struct frame_info". diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 8c3cbb76128..b72140eadee 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -149,7 +149,9 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum, return 1; vector_p = TYPE_VECTOR (register_type (gdbarch, regnum)); float_p = TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT; - raw_p = regnum < gdbarch_num_regs (gdbarch); + /* 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; if (group == float_reggroup) return float_p; if (group == vector_reggroup)