/* Finally, some KGDB code :-) Weak aliases for breakpoint management, can be overriden by architectures when needed:  */
int __weak kgdb_arch_set_breakpoint(unsigned long addr, char *saved_instr)
/* Finally, some KGDB code :-) Weak aliases for breakpoint management, can be overriden by architectures when needed:  */
int __weak kgdb_arch_set_breakpoint(unsigned long addr, char *saved_instr)
{
	int err;
	err = probe_kernel_read(saved_instr, (char *)addr, BREAK_INSTR_SIZE);
	if (err)
		return err;
	return probe_kernel_write((char *)addr, arch_kgdb_ops.gdb_bpt_instr,
				  BREAK_INSTR_SIZE);
}