void reinsert_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; reinsert_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 raw breakpoint at 0x%s " "in list (reinserting).\n", paddress (pc)); } }
void reinsert_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) reinsert_raw_breakpoint (bp); }
void reinsert_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 raw breakpoint at 0x%s " "in list (reinserting).\n", paddress (pc)); return; } reinsert_raw_breakpoint (bp); }