Lines Matching refs:pc
495 uint8_t cur, *pc, *sp; in gdbstub_single_step() local
505 pc = (u8 *) regs->pc; in gdbstub_single_step()
507 if (gdbstub_read_byte(pc, &cur) < 0) in gdbstub_single_step()
510 gdbstub_bkpt("Single Step from %p { %02x }\n", pc, cur); in gdbstub_single_step()
516 if (!__gdbstub_mark_bp(pc + size, 0)) in gdbstub_single_step()
522 if (gdbstub_read_byte(pc + 1, (u8 *) &x) < 0) in gdbstub_single_step()
524 if (!__gdbstub_mark_bp(pc + 2, 0)) in gdbstub_single_step()
527 !__gdbstub_mark_bp(pc + (s8) x, 1)) in gdbstub_single_step()
533 if (!__gdbstub_mark_bp(pc + 1, 0)) in gdbstub_single_step()
535 if (regs->pc != regs->lar && in gdbstub_single_step()
543 if (!__gdbstub_mark_bp(pc + 1, 0)) in gdbstub_single_step()
550 if (gdbstub_read_byte(pc + 1, ((u8 *) &x) + 0) < 0 || in gdbstub_single_step()
551 gdbstub_read_byte(pc + 2, ((u8 *) &x) + 1) < 0) in gdbstub_single_step()
553 if (!__gdbstub_mark_bp(pc + (s16) x, 0)) in gdbstub_single_step()
560 if (gdbstub_read_byte(pc + 1, ((u8 *) &x) + 0) < 0 || in gdbstub_single_step()
561 gdbstub_read_byte(pc + 2, ((u8 *) &x) + 1) < 0 || in gdbstub_single_step()
562 gdbstub_read_byte(pc + 3, ((u8 *) &x) + 2) < 0 || in gdbstub_single_step()
563 gdbstub_read_byte(pc + 4, ((u8 *) &x) + 3) < 0) in gdbstub_single_step()
565 if (!__gdbstub_mark_bp(pc + (s32) x, 0)) in gdbstub_single_step()
577 if (gdbstub_read_byte(pc + 2, (u8 *) &x) < 0) in gdbstub_single_step()
590 if (gdbstub_read_byte(pc + 1, &cur) < 0) in gdbstub_single_step()
630 if (!__gdbstub_mark_bp(pc + 2, 0)) in gdbstub_single_step()
638 if (gdbstub_read_byte(pc + 1, &cur) < 0) in gdbstub_single_step()
640 if (!__gdbstub_mark_bp(pc + 3, 0)) in gdbstub_single_step()
645 pc + 2, ((u8 *) &x) + 0) < 0) in gdbstub_single_step()
648 !__gdbstub_mark_bp(pc + (s8) x, 1)) in gdbstub_single_step()
654 if (gdbstub_read_byte(pc + 1, &cur) < 0) in gdbstub_single_step()
660 pc + 2, ((u8 *) &x) + 0) < 0 || in gdbstub_single_step()
662 pc + 3, ((u8 *) &x) + 1) < 0) in gdbstub_single_step()
664 if (!__gdbstub_mark_bp(pc + (s16) x, 0)) in gdbstub_single_step()
667 if (!__gdbstub_mark_bp(pc + 4, 0)) in gdbstub_single_step()
673 if (gdbstub_read_byte(pc + 1, &cur) < 0) in gdbstub_single_step()
678 pc + 2, ((u8 *) &x) + 0) < 0 || in gdbstub_single_step()
680 pc + 3, ((u8 *) &x) + 1) < 0 || in gdbstub_single_step()
682 pc + 4, ((u8 *) &x) + 2) < 0 || in gdbstub_single_step()
684 pc + 5, ((u8 *) &x) + 3) < 0) in gdbstub_single_step()
687 pc + (s32) x, 0)) in gdbstub_single_step()
691 pc + 6, 0)) in gdbstub_single_step()
1205 if (regs->pc == (unsigned long) __gdbstub_pause) in gdbstub()
1206 regs->pc = (unsigned long) start_kernel; in gdbstub()
1213 if ((step_bp[0].addr && step_bp[0].addr == (u8 *) regs->pc) || in gdbstub()
1214 (step_bp[1].addr && step_bp[1].addr == (u8 *) regs->pc)) in gdbstub()
1234 bug = find_bug(regs->pc); in gdbstub()
1238 "BUG() at address %lx\n", regs->pc); in gdbstub()
1244 regs->pc, bug->file, bug->line); in gdbstub()
1253 regs->pc -= 2; in gdbstub()
1255 } else if (regs->pc == (unsigned long) __gdbstub_bug_trap) { in gdbstub()
1256 regs->pc = regs->mdr; in gdbstub()
1330 ptr = mem2hex(®s->pc, ptr, 4, 0); in gdbstub()
1391 ptr = mem2hex(®s->pc, ptr, 4, 0); in gdbstub()
1441 ptr = hex2mem(ptr, ®s->pc, 4, 0); in gdbstub()
1535 regs->pc = addr; in gdbstub()
1708 regs, excep, mdr, regs->pc); in debugger_intercept()
1712 regs->pc, regs->epsw, (unsigned long) &ret, in debugger_intercept()
1761 if (regs->pc == (unsigned) gdbstub_read_byte_guard) { in gdbstub_exception()
1762 regs->pc = (unsigned) gdbstub_read_byte_cont; in gdbstub_exception()
1766 if (regs->pc == (unsigned) gdbstub_read_word_guard) { in gdbstub_exception()
1767 regs->pc = (unsigned) gdbstub_read_word_cont; in gdbstub_exception()
1771 if (regs->pc == (unsigned) gdbstub_read_dword_guard) { in gdbstub_exception()
1772 regs->pc = (unsigned) gdbstub_read_dword_cont; in gdbstub_exception()
1776 if (regs->pc == (unsigned) gdbstub_write_byte_guard) { in gdbstub_exception()
1777 regs->pc = (unsigned) gdbstub_write_byte_cont; in gdbstub_exception()
1781 if (regs->pc == (unsigned) gdbstub_write_word_guard) { in gdbstub_exception()
1782 regs->pc = (unsigned) gdbstub_write_word_cont; in gdbstub_exception()
1786 if (regs->pc == (unsigned) gdbstub_write_dword_guard) { in gdbstub_exception()
1787 regs->pc = (unsigned) gdbstub_write_dword_cont; in gdbstub_exception()