From 97dfe206170141e809e8ebef68a6a371861fd7f9 Mon Sep 17 00:00:00 2001 From: Omair Javaid Date: Thu, 9 Jan 2014 15:49:27 +0500 Subject: gdb: ARM: Adds support for recording system call instructions gdb/ChangeLog: 2014-01-15 Omair Javaid * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h". (struct arm_linux_record_tdep): Declare. (arm_canonicalize_syscall): New function. (arm_all_but_pc_registers_record): New function. (arm_linux_syscall_record): New function. (arm_linux_init_abi): Add syscall recording constructs. * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall decoding. (arm_record_coproc_data_proc): Update arm syscall decoding. * arm-tdep.h (struct gdbarch_tdep) : Remove. : New field. * configure.tgt (arm*-*-linux*): Add linux-record.o to gdb_target_obs. --- gdb/arm-tdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/arm-tdep.h') diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h index 334f443..f8ba122 100644 --- a/gdb/arm-tdep.h +++ b/gdb/arm-tdep.h @@ -205,8 +205,8 @@ struct gdbarch_tdep instruction. */ CORE_ADDR (*syscall_next_pc) (struct frame_info *frame); - /* Parse swi insn args, sycall record. */ - int (*arm_swi_record) (struct regcache *regcache); + /* syscall record. */ + int (*arm_syscall_record) (struct regcache *regcache, unsigned long svc_number); }; /* Structures used for displaced stepping. */ -- cgit v1.1