diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-13 22:34:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-13 22:34:27 +0000 |
commit | 9b5e151c9dbed18d0918c9ff0f199bce4a494339 (patch) | |
tree | 3a960411dbcae057c1ef06fc4a12ce18de7ee50b /gdb/reggroups.c | |
parent | 80d35d9032795500700b25093d38a14ae17241d1 (diff) | |
download | gdb-9b5e151c9dbed18d0918c9ff0f199bce4a494339.zip gdb-9b5e151c9dbed18d0918c9ff0f199bce4a494339.tar.gz gdb-9b5e151c9dbed18d0918c9ff0f199bce4a494339.tar.bz2 |
2003-04-13 Andrew Cagney <cagney@redhat.com>
* reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
of gdbarch_num_regs.
Diffstat (limited to 'gdb/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 8c3cbb7..b72140e 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) |