Lines Matching defs:pc
82 the pc points at the instruction just after the mips "syscall"
94 /* get the user's pc (plus 8) */
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);
147 int mips_next_pcs(struct process *proc, uint32_t pc, uint32_t *newpc)
154 inst = ptrace(PTRACE_PEEKTEXT, proc->pid, pc, 0);
167 newpc[nr++] = pc + 8;
168 newpc[nr++] = pc + 4 +
172 newpc[nr++] = pc + 4;
177 newpc[nr++] = pc + 8;
178 newpc[nr++] = pc + mips32_relative_offset(inst) + 4;
180 newpc[nr++] = pc + 4;
199 newpc[nr++] = pc + 4;
215 newpc[nr++] = pc + 8;
216 newpc[nr++] = pc + 4 +
220 newpc[nr++] = pc + 4;
228 newpc[nr++] = rx + ((pc + 4) & ~0x0fffffff);
234 newpc[nr++] = pc + 4 +
244 newpc[nr++] = pc + 8;
245 newpc[nr++] = pc + mips32_relative_offset(inst) + 4;
262 printf("nr=%d pc=%x\n", nr, pc);
263 printf("pc=%x %x\n", newpc[0], newpc[1]);
272 uint32_t pc = (uint32_t) get_instruction_pointer(proc);
276 nr = mips_next_pcs(proc, pc, newpcs);