2003-04-13 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 13 Apr 2003 22:34:27 +0000 (22:34 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 13 Apr 2003 22:34:27 +0000 (22:34 +0000)
* reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
of gdbarch_num_regs.

gdb/ChangeLog
gdb/reggroups.c

index 3ec006121d678e634583eb5f20b6681f96d2108b..7465e4acc88c1b74add9f66f025c9162910177a8 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-13  Andrew Cagney  <cagney@redhat.com>
+
+       * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
+       of gdbarch_num_regs.
+
 2003-04-13  Andrew Cagney  <cagney@redhat.com>
 
        * frame.h: Mention what replaced what in "struct frame_info".
index 8c3cbb76128771e8bfd930f18493c5edd358bc6e..b72140eadeebdf62bf8e38ff9290507080486a10 100644 (file)
@@ -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)