* rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Apr 2007 16:02:41 +0000 (16:02 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Apr 2007 16:02:41 +0000 (16:02 +0000)
register.

gdb/ChangeLog
gdb/rs6000-tdep.c

index b123a95..c10d29e 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-10  Andreas Schwab  <schwab@suse.de>
+
+       * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
+       register.
+
 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * breakpoint.c (gdb_breakpoint_query): Really return an
index 6e17167..73dffee 100644 (file)
@@ -2274,6 +2274,8 @@ rs6000_dwarf2_reg_to_regnum (int num)
   else
     switch (num)
       {
+      case 64:
+       return tdep->ppc_cr_regnum;
       case 67:
         return tdep->ppc_vrsave_regnum - 1; /* vscr */
       case 99: