Home | History | Annotate | Download | only in mips

Lines Matching full:proc

38 #include "proc.h"
60 \param proc The process that had an event.
64 Most targets just return here. A couple use proc->arch_ptr for a
68 get_arch_dep(struct process *proc)
73 \param proc Process that had event.
90 syscall_p(struct process *proc, int status, int *sysnum)
93 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
95 long pc = (long)get_instruction_pointer(proc);
97 int insn = ptrace(PTRACE_PEEKTEXT, proc->pid, pc - 4, 0);
98 int num = ptrace(PTRACE_PEEKTEXT, proc->pid, pc - 8, 0);
111 if (proc->callstack_depth > 0 &&
112 proc->callstack[proc->callstack_depth - 1].is_syscall &&
113 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) {
147 int mips_next_pcs(struct process *proc, uint32_t pc, uint32_t *newpc)
154 inst = ptrace(PTRACE_PEEKTEXT, proc->pid, pc, 0);
194 rx = ptrace(PTRACE_PEEKUSER,proc->pid, rn, 0);
268 arch_sw_singlestep(struct process *proc, struct breakpoint *bp,
272 uint32_t pc = (uint32_t) get_instruction_pointer(proc);
276 nr = mips_next_pcs(proc, pc, newpcs);
281 if (DICT_HAS_KEY(proc->leader->breakpoints, &baddr)) {
290 ptrace(PTRACE_SYSCALL, proc->pid, 0, 0);
296 \param proc The process that had an event.
323 gimme_arg(enum tof type, struct process *proc, int arg_num,
331 return ptrace(PTRACE_PEEKUSER,proc->pid,off_v0,0);
334 unsigned a3=ptrace(PTRACE_PEEKUSER, proc->pid,off_a3,0);
335 unsigned v0=ptrace(PTRACE_PEEKUSER, proc->pid,off_v0,0);
345 ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_fpr0+12+arg_num*2,0);
350 ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_a0+arg_num,0);
355 addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0);
361 ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0);
367 addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0);
373 ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0);