From a489f7899482002eac7956dfcd923dc0688b6ac0 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 10 Apr 2007 16:02:41 +0000 Subject: [PATCH] * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR register. --- gdb/ChangeLog | 5 +++++ gdb/rs6000-tdep.c | 2 ++ 2 files changed, 7 insertions(+) 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: