Lines Matching refs:kgdb_break
101 static struct kgdb_bkpt kgdb_break[KGDB_MAX_BREAKPOINTS] = { variable
300 if (kgdb_break[i].state != BP_SET) in dbg_activate_sw_breakpoints()
303 error = kgdb_arch_set_breakpoint(&kgdb_break[i]); in dbg_activate_sw_breakpoints()
307 kgdb_break[i].bpt_addr); in dbg_activate_sw_breakpoints()
311 kgdb_flush_swbreak_addr(kgdb_break[i].bpt_addr); in dbg_activate_sw_breakpoints()
312 kgdb_break[i].state = BP_ACTIVE; in dbg_activate_sw_breakpoints()
328 if ((kgdb_break[i].state == BP_SET) && in dbg_set_sw_break()
329 (kgdb_break[i].bpt_addr == addr)) in dbg_set_sw_break()
333 if (kgdb_break[i].state == BP_REMOVED && in dbg_set_sw_break()
334 kgdb_break[i].bpt_addr == addr) { in dbg_set_sw_break()
342 if (kgdb_break[i].state == BP_UNDEFINED) { in dbg_set_sw_break()
352 kgdb_break[breakno].state = BP_SET; in dbg_set_sw_break()
353 kgdb_break[breakno].type = BP_BREAKPOINT; in dbg_set_sw_break()
354 kgdb_break[breakno].bpt_addr = addr; in dbg_set_sw_break()
366 if (kgdb_break[i].state != BP_ACTIVE) in dbg_deactivate_sw_breakpoints()
368 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_deactivate_sw_breakpoints()
371 kgdb_break[i].bpt_addr); in dbg_deactivate_sw_breakpoints()
375 kgdb_flush_swbreak_addr(kgdb_break[i].bpt_addr); in dbg_deactivate_sw_breakpoints()
376 kgdb_break[i].state = BP_SET; in dbg_deactivate_sw_breakpoints()
387 if ((kgdb_break[i].state == BP_SET) && in dbg_remove_sw_break()
388 (kgdb_break[i].bpt_addr == addr)) { in dbg_remove_sw_break()
389 kgdb_break[i].state = BP_REMOVED; in dbg_remove_sw_break()
401 if ((kgdb_break[i].state == BP_REMOVED) && in kgdb_isremovedbreak()
402 (kgdb_break[i].bpt_addr == addr)) in kgdb_isremovedbreak()
413 if (kgdb_break[i].state == BP_ACTIVE && in kgdb_has_hit_break()
414 kgdb_break[i].bpt_addr == addr) in kgdb_has_hit_break()
427 if (kgdb_break[i].state != BP_ACTIVE) in dbg_remove_all_break()
429 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_remove_all_break()
432 kgdb_break[i].bpt_addr); in dbg_remove_all_break()
434 kgdb_break[i].state = BP_UNDEFINED; in dbg_remove_all_break()
450 if (init_section_contains((void *)kgdb_break[i].bpt_addr, 0)) in kgdb_free_init_mem()
451 kgdb_break[i].state = BP_UNDEFINED; in kgdb_free_init_mem()