Fix for gdb.base/pc-fp.exp.

Message ID 1471900578.4102.36.camel@us.ibm.com
State New, archived
Headers

Commit Message

Carl Love Aug. 22, 2016, 9:16 p.m. UTC
  Fix for gdb.base/pc-fp.exp.

gdb/Changelog

2016-08-22  Carl Love  <cel@us.ibm.com>

	* rs6000-tdep.c (rs6000_gdbarch_init): Remove deprecated call set_gdbarch_deprecated_fp_regnum()
	from Power architecture initialization function.
---
 gdb/rs6000-tdep.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Pedro Alves Aug. 22, 2016, 11:17 p.m. UTC | #1
Can you provide more details?

E.g.:

What's was wrong?  What failed?  Why is removing this line the
right fix?

I'm not suggesting that the fix is wrong (or right, I have no
idea).  Just pointing out that context is missing.

Thanks,
Pedro Alves
  

Patch

diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index eb12c5d..e180641 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -5957,7 +5957,6 @@  rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   set_gdbarch_pc_regnum (gdbarch, PPC_PC_REGNUM);
   set_gdbarch_sp_regnum (gdbarch, PPC_R0_REGNUM + 1);
-  set_gdbarch_deprecated_fp_regnum (gdbarch, PPC_R0_REGNUM + 1);
   set_gdbarch_fp0_regnum (gdbarch, tdep->ppc_fp0_regnum);
   set_gdbarch_register_sim_regno (gdbarch, rs6000_register_sim_regno);