Rename record_ prefixes in record-full.h into record_full_.

gdb/
	* record-full.h, record-full.c (record_memory_query): Rename
	to ...
	(record_full_memory_query): ...this. Update all users.
	(record_arch_list_add_reg): Rename to ...
	(record_full_arch_list_add_reg): ...this. Update all users.
	(record_arch_list_add_mem): Rename to ...
	(record_full_arch_list_add_mem): ...this. Update all users.
	(record_arch_list_add_end): Rename to ...
	(record_full_arch_list_add_end): ...this. Update all users.
	(record_gdb_operation_disable_set): Rename to ...
	(record_full_gdb_operation_disable_set): ...this.
	Update all users.
This commit is contained in:
Markus Metzger
2013-03-11 08:45:54 +00:00
parent 88d1aa9d26
commit 25ea693b87
10 changed files with 656 additions and 608 deletions

View File

@ -1,3 +1,18 @@
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
* record-full.h, record-full.c (record_memory_query): Rename
to ...
(record_full_memory_query): ...this. Update all users.
(record_arch_list_add_reg): Rename to ...
(record_full_arch_list_add_reg): ...this. Update all users.
(record_arch_list_add_mem): Rename to ...
(record_full_arch_list_add_mem): ...this. Update all users.
(record_arch_list_add_end): Rename to ...
(record_full_arch_list_add_end): ...this. Update all users.
(record_gdb_operation_disable_set): Rename to ...
(record_full_gdb_operation_disable_set): ...this.
Update all users.
2013-03-11 Markus Metzger <markus.t.metzger@intel.com> 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
* record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ... * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...

View File

@ -313,39 +313,39 @@ amd64_linux_write_pc (struct regcache *regcache, CORE_ADDR pc)
static int static int
amd64_all_but_ip_registers_record (struct regcache *regcache) amd64_all_but_ip_registers_record (struct regcache *regcache)
{ {
if (record_arch_list_add_reg (regcache, AMD64_RAX_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RAX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RCX_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RCX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RDX_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RDX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RBX_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RBX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RSP_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RSP_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RBP_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RBP_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RSI_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RSI_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RDI_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RDI_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R8_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R8_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R9_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R9_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R10_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R10_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R11_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R11_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R12_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R12_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R13_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R13_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R14_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R14_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R15_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R15_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_EFLAGS_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_EFLAGS_REGNUM))
return -1; return -1;
return 0; return 0;
@ -1164,7 +1164,7 @@ amd64_canonicalize_syscall (enum amd64_syscall syscall_number)
/* Parse the arguments of current system call instruction and record /* Parse the arguments of current system call instruction and record
the values of the registers and memory that will be changed into the values of the registers and memory that will be changed into
"record_arch_list". This instruction is "syscall". "record_full_arch_list". This instruction is "syscall".
Return -1 if something wrong. */ Return -1 if something wrong. */
@ -1203,8 +1203,8 @@ amd64_linux_syscall_record (struct regcache *regcache)
regcache_raw_read_unsigned (regcache, regcache_raw_read_unsigned (regcache,
amd64_linux_record_tdep.arg2, amd64_linux_record_tdep.arg2,
&addr); &addr);
if (record_arch_list_add_mem (addr, if (record_full_arch_list_add_mem
amd64_linux_record_tdep.size_ulong)) (addr, amd64_linux_record_tdep.size_ulong))
return -1; return -1;
} }
goto record_regs; goto record_regs;
@ -1231,9 +1231,9 @@ amd64_linux_syscall_record (struct regcache *regcache)
record_regs: record_regs:
/* Record the return value of the system call. */ /* Record the return value of the system call. */
if (record_arch_list_add_reg (regcache, AMD64_RCX_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RCX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_R11_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_R11_REGNUM))
return -1; return -1;
return 0; return 0;
@ -1253,7 +1253,7 @@ amd64_linux_record_signal (struct gdbarch *gdbarch,
if (amd64_all_but_ip_registers_record (regcache)) if (amd64_all_but_ip_registers_record (regcache))
return -1; return -1;
if (record_arch_list_add_reg (regcache, AMD64_RIP_REGNUM)) if (record_full_arch_list_add_reg (regcache, AMD64_RIP_REGNUM))
return -1; return -1;
/* Record the change in the stack. */ /* Record the change in the stack. */
@ -1267,12 +1267,12 @@ amd64_linux_record_signal (struct gdbarch *gdbarch,
/* This is for frame_size. /* This is for frame_size.
sp -= sizeof (struct rt_sigframe); */ sp -= sizeof (struct rt_sigframe); */
rsp -= AMD64_LINUX_frame_size; rsp -= AMD64_LINUX_frame_size;
if (record_arch_list_add_mem (rsp, AMD64_LINUX_redzone if (record_full_arch_list_add_mem (rsp, AMD64_LINUX_redzone
+ AMD64_LINUX_xstate + AMD64_LINUX_xstate
+ AMD64_LINUX_frame_size)) + AMD64_LINUX_frame_size))
return -1; return -1;
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
return -1; return -1;
return 0; return 0;

View File

@ -12601,13 +12601,13 @@ arm_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
if (0 == ret) if (0 == ret)
{ {
/* Record registers. */ /* Record registers. */
record_arch_list_add_reg (arm_record.regcache, ARM_PC_REGNUM); record_full_arch_list_add_reg (arm_record.regcache, ARM_PC_REGNUM);
if (arm_record.arm_regs) if (arm_record.arm_regs)
{ {
for (no_of_rec = 0; no_of_rec < arm_record.reg_rec_count; no_of_rec++) for (no_of_rec = 0; no_of_rec < arm_record.reg_rec_count; no_of_rec++)
{ {
if (record_arch_list_add_reg (arm_record.regcache , if (record_full_arch_list_add_reg
arm_record.arm_regs[no_of_rec])) (arm_record.regcache , arm_record.arm_regs[no_of_rec]))
ret = -1; ret = -1;
} }
} }
@ -12616,14 +12616,14 @@ arm_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
{ {
for (no_of_rec = 0; no_of_rec < arm_record.mem_rec_count; no_of_rec++) for (no_of_rec = 0; no_of_rec < arm_record.mem_rec_count; no_of_rec++)
{ {
if (record_arch_list_add_mem if (record_full_arch_list_add_mem
((CORE_ADDR)arm_record.arm_mems[no_of_rec].addr, ((CORE_ADDR)arm_record.arm_mems[no_of_rec].addr,
arm_record.arm_mems[no_of_rec].len)) arm_record.arm_mems[no_of_rec].len))
ret = -1; ret = -1;
} }
} }
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
ret = -1; ret = -1;
} }

View File

@ -370,23 +370,23 @@ i386_linux_write_pc (struct regcache *regcache, CORE_ADDR pc)
static int static int
i386_all_but_ip_registers_record (struct regcache *regcache) i386_all_but_ip_registers_record (struct regcache *regcache)
{ {
if (record_arch_list_add_reg (regcache, I386_EAX_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EAX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_ECX_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_ECX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EDX_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EDX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EBX_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EBX_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_ESP_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_ESP_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EBP_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EBP_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_ESI_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_ESI_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EDI_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EDI_REGNUM))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EFLAGS_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EFLAGS_REGNUM))
return -1; return -1;
return 0; return 0;
@ -450,7 +450,7 @@ i386_linux_intx80_sysenter_syscall_record (struct regcache *regcache)
return ret; return ret;
/* Record the return value of the system call. */ /* Record the return value of the system call. */
if (record_arch_list_add_reg (regcache, I386_EAX_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EAX_REGNUM))
return -1; return -1;
return 0; return 0;
@ -469,7 +469,7 @@ i386_linux_record_signal (struct gdbarch *gdbarch,
if (i386_all_but_ip_registers_record (regcache)) if (i386_all_but_ip_registers_record (regcache))
return -1; return -1;
if (record_arch_list_add_reg (regcache, I386_EIP_REGNUM)) if (record_full_arch_list_add_reg (regcache, I386_EIP_REGNUM))
return -1; return -1;
/* Record the change in the stack. */ /* Record the change in the stack. */
@ -480,11 +480,11 @@ i386_linux_record_signal (struct gdbarch *gdbarch,
/* This is for frame_size. /* This is for frame_size.
sp -= sizeof (struct rt_sigframe); */ sp -= sizeof (struct rt_sigframe); */
esp -= I386_LINUX_frame_size; esp -= I386_LINUX_frame_size;
if (record_arch_list_add_mem (esp, if (record_full_arch_list_add_mem (esp,
I386_LINUX_xstate + I386_LINUX_frame_size)) I386_LINUX_xstate + I386_LINUX_frame_size))
return -1; return -1;
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
return -1; return -1;
return 0; return 0;

File diff suppressed because it is too large Load Diff

View File

@ -3011,7 +3011,7 @@ adjust_pc_after_break (struct execution_control_state *ecs)
struct cleanup *old_cleanups = NULL; struct cleanup *old_cleanups = NULL;
if (RECORD_IS_USED) if (RECORD_IS_USED)
old_cleanups = record_gdb_operation_disable_set (); old_cleanups = record_full_gdb_operation_disable_set ();
/* When using hardware single-step, a SIGTRAP is reported for both /* When using hardware single-step, a SIGTRAP is reported for both
a completed single-step and a software breakpoint. Need to a completed single-step and a software breakpoint. Need to

File diff suppressed because it is too large Load Diff

View File

@ -573,7 +573,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x02: /* gsr */ case 0x02: /* gsr */
{ {
int reg = (inst >> 8) & 0xf; int reg = (inst >> 8) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -603,7 +603,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x02: /* mov (register-to-register) */ case 0x02: /* mov (register-to-register) */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -613,17 +613,17 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
MOXIE_SP_REGNUM, (gdb_byte *) & tmpu32); MOXIE_SP_REGNUM, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_reg (regcache, MOXIE_FP_REGNUM) if (record_full_arch_list_add_reg (regcache, MOXIE_FP_REGNUM)
|| (record_arch_list_add_reg (regcache, || (record_full_arch_list_add_reg (regcache,
MOXIE_SP_REGNUM)) MOXIE_SP_REGNUM))
|| record_arch_list_add_mem (tmpu32 - 12, 12)) || record_full_arch_list_add_mem (tmpu32 - 12, 12))
return -1; return -1;
} }
break; break;
case 0x04: /* ret */ case 0x04: /* ret */
{ {
if (record_arch_list_add_reg (regcache, MOXIE_FP_REGNUM) if (record_full_arch_list_add_reg (regcache, MOXIE_FP_REGNUM)
|| (record_arch_list_add_reg (regcache, || (record_full_arch_list_add_reg (regcache,
MOXIE_SP_REGNUM))) MOXIE_SP_REGNUM)))
return -1; return -1;
} }
@ -631,7 +631,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x05: /* add.l */ case 0x05: /* add.l */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -641,8 +641,8 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32); regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_reg (regcache, reg) if (record_full_arch_list_add_reg (regcache, reg)
|| record_arch_list_add_mem (tmpu32 - 4, 4)) || record_full_arch_list_add_mem (tmpu32 - 4, 4))
return -1; return -1;
} }
break; break;
@ -650,15 +650,15 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
{ {
int a = (inst >> 4) & 0xf; int a = (inst >> 4) & 0xf;
int b = inst & 0xf; int b = inst & 0xf;
if (record_arch_list_add_reg (regcache, a) if (record_full_arch_list_add_reg (regcache, a)
|| record_arch_list_add_reg (regcache, b)) || record_full_arch_list_add_reg (regcache, b))
return -1; return -1;
} }
break; break;
case 0x08: /* lda.l */ case 0x08: /* lda.l */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -666,14 +666,14 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
{ {
tmpu32 = (uint32_t) moxie_process_readu (addr+2, buf, tmpu32 = (uint32_t) moxie_process_readu (addr+2, buf,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 4)) if (record_full_arch_list_add_mem (tmpu32, 4))
return -1; return -1;
} }
break; break;
case 0x0a: /* ld.l (register indirect) */ case 0x0a: /* ld.l (register indirect) */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -683,14 +683,14 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32); regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 4)) if (record_full_arch_list_add_mem (tmpu32, 4))
return -1; return -1;
} }
break; break;
case 0x0c: /* ldo.l */ case 0x0c: /* ldo.l */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -703,13 +703,13 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
tmpu32 += offset; tmpu32 += offset;
if (record_arch_list_add_mem (tmpu32, 4)) if (record_full_arch_list_add_mem (tmpu32, 4))
return -1; return -1;
} }
break; break;
case 0x0e: /* cmp */ case 0x0e: /* cmp */
{ {
if (record_arch_list_add_reg (regcache, MOXIE_CC_REGNUM)) if (record_full_arch_list_add_reg (regcache, MOXIE_CC_REGNUM))
return -1; return -1;
} }
break; break;
@ -733,10 +733,10 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
MOXIE_SP_REGNUM, (gdb_byte *) & tmpu32); MOXIE_SP_REGNUM, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_reg (regcache, MOXIE_FP_REGNUM) if (record_full_arch_list_add_reg (regcache, MOXIE_FP_REGNUM)
|| (record_arch_list_add_reg (regcache, || (record_full_arch_list_add_reg (regcache,
MOXIE_SP_REGNUM)) MOXIE_SP_REGNUM))
|| record_arch_list_add_mem (tmpu32 - 12, 12)) || record_full_arch_list_add_mem (tmpu32 - 12, 12))
return -1; return -1;
} }
break; break;
@ -750,7 +750,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x1d: /* lda.b */ case 0x1d: /* lda.b */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -760,7 +760,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32); regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 1)) if (record_full_arch_list_add_mem (tmpu32, 1))
return -1; return -1;
} }
break; break;
@ -768,7 +768,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
{ {
tmpu32 = moxie_process_readu (addr+2, (char *) buf, tmpu32 = moxie_process_readu (addr+2, (char *) buf,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 1)) if (record_full_arch_list_add_mem (tmpu32, 1))
return -1; return -1;
} }
break; break;
@ -777,7 +777,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x22: /* lda.s */ case 0x22: /* lda.s */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -787,7 +787,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32); regcache_raw_read (regcache, reg, (gdb_byte *) & tmpu32);
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 2)) if (record_full_arch_list_add_mem (tmpu32, 2))
return -1; return -1;
} }
break; break;
@ -795,7 +795,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
{ {
tmpu32 = moxie_process_readu (addr+2, (char *) buf, tmpu32 = moxie_process_readu (addr+2, (char *) buf,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (tmpu32, 2)) if (record_full_arch_list_add_mem (tmpu32, 2))
return -1; return -1;
} }
break; break;
@ -816,7 +816,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x2f: /* mul.l */ case 0x2f: /* mul.l */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -837,7 +837,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
break; break;
case 0x2: /* SYS_open */ case 0x2: /* SYS_open */
{ {
if (record_arch_list_add_reg (regcache, RET1_REGNUM)) if (record_full_arch_list_add_reg (regcache, RET1_REGNUM))
return -1; return -1;
} }
break; break;
@ -858,13 +858,13 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
length = moxie_process_readu (tmpu32+20, (char *) buf, length = moxie_process_readu (tmpu32+20, (char *) buf,
4, byte_order); 4, byte_order);
if (record_arch_list_add_mem (ptr, length)) if (record_full_arch_list_add_mem (ptr, length))
return -1; return -1;
} }
break; break;
case 0x5: /* SYS_write */ case 0x5: /* SYS_write */
{ {
if (record_arch_list_add_reg (regcache, RET1_REGNUM)) if (record_full_arch_list_add_reg (regcache, RET1_REGNUM))
return -1; return -1;
} }
break; break;
@ -879,7 +879,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x34: /* umod.l */ case 0x34: /* umod.l */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -889,7 +889,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
case 0x36: /* ldo.b */ case 0x36: /* ldo.b */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -902,14 +902,14 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
tmpu32 += offset; tmpu32 += offset;
if (record_arch_list_add_mem (tmpu32, 1)) if (record_full_arch_list_add_mem (tmpu32, 1))
return -1; return -1;
} }
break; break;
case 0x38: /* ldo.s */ case 0x38: /* ldo.s */
{ {
int reg = (inst >> 4) & 0xf; int reg = (inst >> 4) & 0xf;
if (record_arch_list_add_reg (regcache, reg)) if (record_full_arch_list_add_reg (regcache, reg))
return -1; return -1;
} }
break; break;
@ -922,7 +922,7 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32, tmpu32 = extract_unsigned_integer ((gdb_byte *) & tmpu32,
4, byte_order); 4, byte_order);
tmpu32 += offset; tmpu32 += offset;
if (record_arch_list_add_mem (tmpu32, 2)) if (record_full_arch_list_add_mem (tmpu32, 2))
return -1; return -1;
} }
break; break;
@ -932,9 +932,9 @@ moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
} }
} }
if (record_arch_list_add_reg (regcache, MOXIE_PC_REGNUM)) if (record_full_arch_list_add_reg (regcache, MOXIE_PC_REGNUM))
return -1; return -1;
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
return -1; return -1;
return 0; return 0;
} }

View File

@ -156,7 +156,7 @@ struct record_full_entry
/* If true, query if PREC cannot record memory /* If true, query if PREC cannot record memory
change of next instruction. */ change of next instruction. */
int record_memory_query = 0; int record_full_memory_query = 0;
struct record_full_core_buf_entry struct record_full_core_buf_entry
{ {
@ -483,7 +483,7 @@ record_full_get_loc (struct record_full_entry *rec)
/* Record the value of a register NUM to record_full_arch_list. */ /* Record the value of a register NUM to record_full_arch_list. */
int int
record_arch_list_add_reg (struct regcache *regcache, int regnum) record_full_arch_list_add_reg (struct regcache *regcache, int regnum)
{ {
struct record_full_entry *rec; struct record_full_entry *rec;
@ -506,7 +506,7 @@ record_arch_list_add_reg (struct regcache *regcache, int regnum)
length is LEN to record_full_arch_list. */ length is LEN to record_full_arch_list. */
int int
record_arch_list_add_mem (CORE_ADDR addr, int len) record_full_arch_list_add_mem (CORE_ADDR addr, int len)
{ {
struct record_full_entry *rec; struct record_full_entry *rec;
@ -537,7 +537,7 @@ record_arch_list_add_mem (CORE_ADDR addr, int len)
record_full_arch_list. */ record_full_arch_list. */
int int
record_arch_list_add_end (void) record_full_arch_list_add_end (void)
{ {
struct record_full_entry *rec; struct record_full_entry *rec;
@ -701,7 +701,7 @@ record_full_message_wrapper_safe (struct regcache *regcache,
static int record_full_gdb_operation_disable = 0; static int record_full_gdb_operation_disable = 0;
struct cleanup * struct cleanup *
record_gdb_operation_disable_set (void) record_full_gdb_operation_disable_set (void)
{ {
struct cleanup *old_cleanups = NULL; struct cleanup *old_cleanups = NULL;
@ -1189,7 +1189,7 @@ record_full_wait_1 (struct target_ops *ops,
ptid_t ptid, struct target_waitstatus *status, ptid_t ptid, struct target_waitstatus *status,
int options) int options)
{ {
struct cleanup *set_cleanups = record_gdb_operation_disable_set (); struct cleanup *set_cleanups = record_full_gdb_operation_disable_set ();
if (record_debug) if (record_debug)
fprintf_unfiltered (gdb_stdlog, fprintf_unfiltered (gdb_stdlog,
@ -1599,7 +1599,7 @@ record_full_registers_change (struct regcache *regcache, int regnum)
for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++) for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++)
{ {
if (record_arch_list_add_reg (regcache, i)) if (record_full_arch_list_add_reg (regcache, i))
{ {
record_full_list_release (record_full_arch_list_tail); record_full_list_release (record_full_arch_list_tail);
error (_("Process record: failed to record execution log.")); error (_("Process record: failed to record execution log."));
@ -1608,13 +1608,13 @@ record_full_registers_change (struct regcache *regcache, int regnum)
} }
else else
{ {
if (record_arch_list_add_reg (regcache, regnum)) if (record_full_arch_list_add_reg (regcache, regnum))
{ {
record_full_list_release (record_full_arch_list_tail); record_full_list_release (record_full_arch_list_tail);
error (_("Process record: failed to record execution log.")); error (_("Process record: failed to record execution log."));
} }
} }
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
{ {
record_full_list_release (record_full_arch_list_tail); record_full_list_release (record_full_arch_list_tail);
error (_("Process record: failed to record execution log.")); error (_("Process record: failed to record execution log."));
@ -1721,7 +1721,7 @@ record_full_xfer_partial (struct target_ops *ops, enum target_object object,
/* Record registers change to list as an instruction. */ /* Record registers change to list as an instruction. */
record_full_arch_list_head = NULL; record_full_arch_list_head = NULL;
record_full_arch_list_tail = NULL; record_full_arch_list_tail = NULL;
if (record_arch_list_add_mem (offset, len)) if (record_full_arch_list_add_mem (offset, len))
{ {
record_full_list_release (record_full_arch_list_tail); record_full_list_release (record_full_arch_list_tail);
if (record_debug) if (record_debug)
@ -1730,7 +1730,7 @@ record_full_xfer_partial (struct target_ops *ops, enum target_object object,
"execution log."); "execution log.");
return -1; return -1;
} }
if (record_arch_list_add_end ()) if (record_full_arch_list_add_end ())
{ {
record_full_list_release (record_full_arch_list_tail); record_full_list_release (record_full_arch_list_tail);
if (record_debug) if (record_debug)
@ -1831,7 +1831,7 @@ record_full_insert_breakpoint (struct gdbarch *gdbarch,
struct cleanup *old_cleanups; struct cleanup *old_cleanups;
int ret; int ret;
old_cleanups = record_gdb_operation_disable_set (); old_cleanups = record_full_gdb_operation_disable_set ();
ret = record_full_beneath_to_insert_breakpoint (gdbarch, bp_tgt); ret = record_full_beneath_to_insert_breakpoint (gdbarch, bp_tgt);
do_cleanups (old_cleanups); do_cleanups (old_cleanups);
@ -1871,7 +1871,7 @@ record_full_remove_breakpoint (struct gdbarch *gdbarch,
struct cleanup *old_cleanups; struct cleanup *old_cleanups;
int ret; int ret;
old_cleanups = record_gdb_operation_disable_set (); old_cleanups = record_full_gdb_operation_disable_set ();
ret = record_full_beneath_to_remove_breakpoint (gdbarch, bp_tgt); ret = record_full_beneath_to_remove_breakpoint (gdbarch, bp_tgt);
do_cleanups (old_cleanups); do_cleanups (old_cleanups);
@ -2717,7 +2717,7 @@ record_full_save (char *recfilename)
gdbarch = get_regcache_arch (regcache); gdbarch = get_regcache_arch (regcache);
/* Disable the GDB operation record. */ /* Disable the GDB operation record. */
set_cleanups = record_gdb_operation_disable_set (); set_cleanups = record_full_gdb_operation_disable_set ();
/* Reverse execute to the begin of record list. */ /* Reverse execute to the begin of record list. */
while (1) while (1)
@ -2897,7 +2897,7 @@ static void
record_full_goto_insn (struct record_full_entry *entry, record_full_goto_insn (struct record_full_entry *entry,
enum exec_direction_kind dir) enum exec_direction_kind dir)
{ {
struct cleanup *set_cleanups = record_gdb_operation_disable_set (); struct cleanup *set_cleanups = record_full_gdb_operation_disable_set ();
struct regcache *regcache = get_current_regcache (); struct regcache *regcache = get_current_regcache ();
struct gdbarch *gdbarch = get_regcache_arch (regcache); struct gdbarch *gdbarch = get_regcache_arch (regcache);
@ -3043,7 +3043,7 @@ record/replay buffer. Zero means unlimited. Default is 200000."),
deprecate_cmd (c, "show record full insn-number-max"); deprecate_cmd (c, "show record full insn-number-max");
add_setshow_boolean_cmd ("memory-query", no_class, add_setshow_boolean_cmd ("memory-query", no_class,
&record_memory_query, _("\ &record_full_memory_query, _("\
Set whether query if PREC cannot record memory change of next instruction."), Set whether query if PREC cannot record memory change of next instruction."),
_("\ _("\
Show whether query if PREC cannot record memory change of next instruction."), Show whether query if PREC cannot record memory change of next instruction."),

View File

@ -20,11 +20,11 @@
#ifndef RECORD_FULL_H #ifndef RECORD_FULL_H
#define RECORD_FULL_H #define RECORD_FULL_H
extern int record_memory_query; extern int record_full_memory_query;
extern int record_arch_list_add_reg (struct regcache *regcache, int num); extern int record_full_arch_list_add_reg (struct regcache *regcache, int num);
extern int record_arch_list_add_mem (CORE_ADDR addr, int len); extern int record_full_arch_list_add_mem (CORE_ADDR addr, int len);
extern int record_arch_list_add_end (void); extern int record_full_arch_list_add_end (void);
extern struct cleanup *record_gdb_operation_disable_set (void); extern struct cleanup *record_full_gdb_operation_disable_set (void);
#endif /* RECORD_FULL_H */ #endif /* RECORD_FULL_H */