• Home
  • Raw
  • Download

Lines Matching refs:proc

43 arm_get_register(struct process *proc, enum arm_register reg, uint32_t *lp)  in arm_get_register()  argument
46 long l = ptrace(PTRACE_PEEKUSER, proc->pid, (void *)(reg * 4L), 0); in arm_get_register()
54 arm_set_register(struct process *proc, enum arm_register reg, uint32_t lp) in arm_set_register() argument
56 return ptrace(PTRACE_PEEKUSER, proc->pid, in arm_set_register()
61 arm_get_register_offpc(struct process *proc, enum arm_register reg, in arm_get_register_offpc() argument
64 if (arm_get_register(proc, reg, lp) < 0) in arm_get_register_offpc()
72 arm_get_shifted_register(struct process *proc, uint32_t inst, int carry, in arm_get_shifted_register() argument
80 if (arm_get_register_offpc(proc, BITS(inst, 8, 11), &shift) < 0) in arm_get_shifted_register()
91 else if (arm_get_register(proc, rm, &res) < 0) in arm_get_shifted_register()
124 get_register_nocheck(struct process *proc, enum arm_register r) in get_register_nocheck() argument
127 if (arm_get_register(proc, r, &reg) < 0) in get_register_nocheck()
135 get_instruction_pointer(struct process *proc) in get_instruction_pointer() argument
137 return get_register_nocheck(proc, ARM_REG_PC); in get_instruction_pointer()
141 set_instruction_pointer(struct process *proc, arch_addr_t addr) in set_instruction_pointer() argument
144 arm_set_register(proc, ARM_REG_PC, (uint32_t)addr); in set_instruction_pointer()
148 get_stack_pointer(struct process *proc) in get_stack_pointer() argument
150 return get_register_nocheck(proc, ARM_REG_SP); in get_stack_pointer()
154 get_return_addr(struct process *proc, arch_addr_t stack_pointer) in get_return_addr() argument
156 return get_register_nocheck(proc, ARM_REG_LR); in get_return_addr()