Home | History | Annotate | Download | only in ppc

Lines Matching refs:proc

39 #include "proc.h"
52 get_arch_dep(struct process *proc)
55 proc->mask_32bit = (proc->e_machine == EM_PPC);
63 syscall_p(struct process *proc, int status, int *sysnum)
66 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
67 long pc = (long)get_instruction_pointer(proc);
69 (int)ptrace(PTRACE_PEEKTEXT, proc->pid, pc - sizeof(long),
74 (int)ptrace(PTRACE_PEEKUSER, proc->pid,
76 if (proc->callstack_depth > 0 &&
77 proc->callstack[proc->callstack_depth - 1].is_syscall &&
78 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) {
90 arch_sw_singlestep(struct process *proc, struct breakpoint *sbp,
94 arch_addr_t ip = get_instruction_pointer(proc);
95 struct breakpoint *other = address2bpstruct(proc->leader, ip);
98 proc->pid, ip, breakpoint_name(sbp), sbp->addr);
109 } else if (proc_read_32(proc, ip, &u.insn) < 0) {
125 unsigned long l = ptrace(PTRACE_PEEKTEXT, proc->pid, addr, 0);
140 proc->pid, addr, branch_addr);
150 proc->pid, ip, addr);
158 " at %p\n", proc->pid, ip);
169 ptrace(PTRACE_CONT, proc->pid, 0, 0);
174 arch_type_sizeof(struct process *proc, struct arg_type_info *info)
176 if (proc == NULL)
197 return proc->e_machine == EM_PPC64 ? 8 : 4;
217 arch_type_alignof(struct process *proc, struct arg_type_info *info)
219 if (proc == NULL)
240 return arch_type_sizeof(proc, info);