aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2007-04-10 16:02:41 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2007-04-10 16:02:41 +0000
commita489f7899482002eac7956dfcd923dc0688b6ac0 (patch)
tree5b988c002ff1465e5b190a2f3b2eebaae056e78b /gdb/rs6000-tdep.c
parentb0b13bb4cc57090510c28345de1c5ab678c68b13 (diff)
downloadgdb-a489f7899482002eac7956dfcd923dc0688b6ac0.zip
gdb-a489f7899482002eac7956dfcd923dc0688b6ac0.tar.gz
gdb-a489f7899482002eac7956dfcd923dc0688b6ac0.tar.bz2
* rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
register.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 6e17167..73dffee 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: