diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b123a9582d..c10d29ee1e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-04-10 Andreas Schwab + + * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR + register. + 2007-04-10 Daniel Jacobowitz * breakpoint.c (gdb_breakpoint_query): Really return an diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 6e1716796e..73dffeec58 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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: