void uninsert_breakpoints_at (CORE_ADDR pc) { struct process_info *proc = current_process (); struct raw_breakpoint *bp; int found = 0; for (bp = proc->raw_breakpoints; bp != NULL; bp = bp->next) if ((bp->raw_type == raw_bkpt_type_sw || bp->raw_type == raw_bkpt_type_hw) && bp->pc == pc) { found = 1; if (bp->inserted) uninsert_raw_breakpoint (bp); } if (!found) { /* This can happen when we remove all breakpoints while handling a step-over. */ if (debug_threads) debug_printf ("Could not find breakpoint at 0x%s " "in list (uninserting).\n", paddress (pc)); } }
void uninsert_all_breakpoints (void) { struct process_info *proc = current_process (); struct raw_breakpoint *bp; for (bp = proc->raw_breakpoints; bp != NULL; bp = bp->next) if (bp->inserted) uninsert_raw_breakpoint (bp); }
void uninsert_breakpoints_at (CORE_ADDR pc) { struct raw_breakpoint *bp; bp = find_raw_breakpoint_at (pc); if (bp == NULL) { /* This can happen when we remove all breakpoints while handling a step-over. */ if (debug_threads) fprintf (stderr, "Could not find breakpoint at 0x%s " "in list (uninserting).\n", paddress (pc)); return; } if (bp->inserted) uninsert_raw_breakpoint (bp); }