Searched refs:linux_regs (Results 1 – 10 of 10) sorted by relevance
/linux-2.6.39/arch/sh/kernel/ |
D | kgdb.c | 46 static short *get_step_address(struct pt_regs *linux_regs) in get_step_address() argument 48 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address() 53 if (linux_regs->sr & SR_T_BIT_MASK) in get_step_address() 54 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 56 addr = linux_regs->pc + 2; in get_step_address() 61 if (linux_regs->sr & SR_T_BIT_MASK) in get_step_address() 62 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 64 addr = linux_regs->pc + 4; /* Not in delay slot */ in get_step_address() 69 if (!(linux_regs->sr & SR_T_BIT_MASK)) in get_step_address() 70 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() [all …]
|
/linux-2.6.39/arch/sparc/kernel/ |
D | kgdb_32.c | 108 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument 118 linux_regs->pc = addr; in kgdb_arch_handle_exception() 119 linux_regs->npc = addr + 4; in kgdb_arch_handle_exception() 125 if (linux_regs->pc == (unsigned long) arch_kgdb_breakpoint) { in kgdb_arch_handle_exception() 126 linux_regs->pc = linux_regs->npc; in kgdb_arch_handle_exception() 127 linux_regs->npc += 4; in kgdb_arch_handle_exception()
|
D | kgdb_64.c | 133 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument 143 linux_regs->tpc = addr; in kgdb_arch_handle_exception() 144 linux_regs->tnpc = addr + 4; in kgdb_arch_handle_exception() 150 if (linux_regs->tpc == (unsigned long) arch_kgdb_breakpoint) { in kgdb_arch_handle_exception() 151 linux_regs->tpc = linux_regs->tnpc; in kgdb_arch_handle_exception() 152 linux_regs->tnpc += 4; in kgdb_arch_handle_exception()
|
/linux-2.6.39/kernel/debug/kdb/ |
D | kdb_debugger.c | 37 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub() 45 addr = instruction_pointer(ks->linux_regs); in kdb_stub() 55 if (addr != instruction_pointer(ks->linux_regs)) in kdb_stub() 56 kgdb_arch_set_pc(ks->linux_regs, addr); in kdb_stub() 114 ks->err_code, db_result, ks->linux_regs); in kdb_stub() 142 kdb_bp_install(ks->linux_regs); in kdb_stub()
|
/linux-2.6.39/kernel/debug/ |
D | gdbstub.c | 541 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs() 612 !dbg_get_reg(regnum, gdb_regs, ks->linux_regs)) { in gdb_cmd_reg_set() 624 dbg_set_reg(regnum, gdb_regs, ks->linux_regs); in gdb_cmd_reg_set() 746 if (!getthread(ks->linux_regs, ks->threadid)) { in gdb_cmd_query() 751 kgdb_mem2hex(getthread(ks->linux_regs, in gdb_cmd_query() 794 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_task() 809 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_task() 828 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_thread() 1045 ks->linux_regs); in gdb_serial_stub() 1079 ks->linux_regs); in gdbstub_state()
|
D | debug_core.c | 413 addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check() 424 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check() 433 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check() 564 if (kgdb_skipexception(ks->ex_vector, ks->linux_regs)) in kgdb_cpu_enter() 683 ks->linux_regs = regs; in kgdb_handle_exception() 701 ks->linux_regs = regs; in kgdb_nmicallback()
|
D | debug_core.h | 28 struct pt_regs *linux_regs; member
|
/linux-2.6.39/arch/arm/kernel/ |
D | kgdb.c | 116 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument 133 linux_regs->ARM_pc = addr; in kgdb_arch_handle_exception() 135 linux_regs->ARM_pc += 4; in kgdb_arch_handle_exception()
|
/linux-2.6.39/arch/powerpc/kernel/ |
D | kgdb.c | 386 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument 400 linux_regs->nip = addr; in kgdb_arch_handle_exception() 408 linux_regs->msr |= MSR_DE; in kgdb_arch_handle_exception() 410 linux_regs->msr |= MSR_SE; in kgdb_arch_handle_exception()
|
/linux-2.6.39/arch/x86/kernel/ |
D | kgdb.c | 460 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument 471 linux_regs->ip = addr; in kgdb_arch_handle_exception() 475 linux_regs->flags &= ~X86_EFLAGS_TF; in kgdb_arch_handle_exception() 480 linux_regs->flags |= X86_EFLAGS_TF; in kgdb_arch_handle_exception()
|