From: Luis Machado Date: Sat, 6 Jul 2013 02:46:00 +0000 (+0000) Subject: * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1ec1b420ce7e3e701b95e75d0a276988c3e7fbf;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eb0eb4bd306..de117a2020c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-07-05 Luis Machado + + * 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 * findvar.c (value_of_register): Use allocate_optimized_out_value diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 59e129f318e..c561bc8209f 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) {