diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2013-07-06 02:46:00 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2013-07-06 02:46:00 +0000 |
commit | e1ec1b420ce7e3e701b95e75d0a276988c3e7fbf (patch) | |
tree | a415dd42c6f8244e6033cfd1ca10b5a381327fa7 /gdb/rs6000-tdep.c | |
parent | 497a4c488f0f8eed82cc6b70174cf3743395524a (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |