Lines Matching refs:bpt
750 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
755 bpt->type = BP_BREAKPOINT; in kgdb_arch_set_breakpoint()
756 err = probe_kernel_read(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
760 err = probe_kernel_write((char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
770 text_poke((void *)bpt->bpt_addr, arch_kgdb_ops.gdb_bpt_instr, in kgdb_arch_set_breakpoint()
772 err = probe_kernel_read(opc, (char *)bpt->bpt_addr, BREAK_INSTR_SIZE); in kgdb_arch_set_breakpoint()
777 bpt->type = BP_POKE_BREAKPOINT; in kgdb_arch_set_breakpoint()
782 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
787 if (bpt->type != BP_POKE_BREAKPOINT) in kgdb_arch_remove_breakpoint()
795 text_poke((void *)bpt->bpt_addr, bpt->saved_instr, BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()
796 err = probe_kernel_read(opc, (char *)bpt->bpt_addr, BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()
797 if (err || memcmp(opc, bpt->saved_instr, BREAK_INSTR_SIZE)) in kgdb_arch_remove_breakpoint()
802 return probe_kernel_write((char *)bpt->bpt_addr, in kgdb_arch_remove_breakpoint()
803 (char *)bpt->saved_instr, BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()