subsys/debug/gdb_server.c
/*
 * Physically uninstall breakpoints, and make sure that modified memory is
 * flushed on all CPUs.
 *
 * Must only be called in the CPU control loop.
 */
Physically uninstall breakpoints, and make sure that modified memory is
flushed on all CPUs.

Must only be called in the CPU control loop.
Physically uninstall breakpoints and make sure that modified memory is flushed on all CPUs . Must only be called in the CPU control loop .
static void uninstall_breakpoints(void)
{
	for (int ix = 0; ix < MAX_SW_BP; ix++) {
		if (bp_array[ix].valid == 1 && bp_array[ix].enabled) {
			gdb_instr_t *addr = bp_array[ix].addr;
			(void)set_instruction(addr, &bp_array[ix].instr,
					      sizeof(gdb_instr_t));
			bp_array[ix].enabled = 0;
		} else if (bp_array[ix].valid == 0) {
			break;
		}
	}
	clear_debug_regs_for_hw_breakpoints();
}
static void uninstall_breakpoints ( void ) { for ( int ix = 0 ; ix < MAX_SW_BP ; ix ++ ) { if ( bp_array [ ix ] . valid == 1 && bp_array [ ix ] . enabled ) { gdb_instr_t * addr = bp_array [ ix ] . addr ; ( void ) set_instruction ( addr , & bp_array [ ix ] . instr , sizeof ( gdb_instr_t ) ) ; bp_array [ ix ] . enabled = 0 ; } else if ( bp_array [ ix ] . valid == 0 ) { break ; } } clear_debug_regs_for_hw_breakpoints ( ) ; }
Physically uninstall breakpoints, and make sure that modified memory is
 flushed on all CPUs.
Physically uninstall breakpoints and make sure that modified memory is flushed on all CPUs .