aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <luisgpm@br.ibm.com>2013-07-06 02:46:00 +0000
committerLuis Machado <luisgpm@br.ibm.com>2013-07-06 02:46:00 +0000
commite1ec1b420ce7e3e701b95e75d0a276988c3e7fbf (patch)
treea415dd42c6f8244e6033cfd1ca10b5a381327fa7
parent497a4c488f0f8eed82cc6b70174cf3743395524a (diff)
downloadgdb-e1ec1b420ce7e3e701b95e75d0a276988c3e7fbf.zip
gdb-e1ec1b420ce7e3e701b95e75d0a276988c3e7fbf.tar.gz
gdb-e1ec1b420ce7e3e701b95e75d0a276988c3e7fbf.tar.bz2
* rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
register number instead of the pseudo register one. (rs6000_dwarf2_reg_to_regnum): Likewise.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/rs6000-tdep.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eb0eb4b..de117a2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-05 Luis Machado <lgustavo@codesourcery.com>
+
+ * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
+ register number instead of the pseudo register one.
+ (rs6000_dwarf2_reg_to_regnum): Likewise.
+
2013-07-04 Pedro Alves <palves@redhat.com>
* findvar.c (value_of_register): Use allocate_optimized_out_value
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 59e129f..c561bc8 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2854,7 +2854,7 @@ rs6000_stab_reg_to_regnum (struct gdbarch *gdbarch, int num)
else if (77 <= num && num <= 108)
return tdep->ppc_vr0_regnum + (num - 77);
else if (1200 <= num && num < 1200 + 32)
- return tdep->ppc_ev0_regnum + (num - 1200);
+ return tdep->ppc_ev0_upper_regnum + (num - 1200);
else
switch (num)
{
@@ -2896,7 +2896,7 @@ rs6000_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int num)
else if (1124 <= num && num < 1124 + 32)
return tdep->ppc_vr0_regnum + (num - 1124);
else if (1200 <= num && num < 1200 + 32)
- return tdep->ppc_ev0_regnum + (num - 1200);
+ return tdep->ppc_ev0_upper_regnum + (num - 1200);
else
switch (num)
{