[10/17,PowerPC] Add record/replay support for TAR

Message ID 20180713135226.2321-11-pedromfc@linux.ibm.com
State New
Headers show
Series
  • GDB support for more powerpc registers on linux
Related show

Commit Message

Pedro Franco de Carvalho July 13, 2018, 1:52 p.m.
This patch changes ppc_process_record_op31 to handele moves to TAR.

gdb/ChangeLog:
2018-07-04  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>

	* rs6000-tdep.c (ppc_process_record_op31): Record changes to TAR.
---
 gdb/rs6000-tdep.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.13.6

Patch

diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index b7891a04b9..134e9d0cbc 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -4669,6 +4669,10 @@  ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
 	case 256:		/* VRSAVE */
 	  record_full_arch_list_add_reg (regcache, tdep->ppc_vrsave_regnum);
 	  return 0;
+	case 815:		/* TAR */
+	  if (tdep->ppc_tar_regnum >= 0)
+	    record_full_arch_list_add_reg (regcache, tdep->ppc_tar_regnum);
+	  return 0;
 	case 896:
 	case 898:		/* PPR */
 	  if (tdep->ppc_ppr_regnum >= 0)