#include <dbg.hpp> // Go through all breakpoints, deleting each one. for (int i = 0; i < get_bpt_qty(); i++) { bpt_t bpt; if (getn_bpt(i, &bpt)) { // Because we are performing many delete operations, queue the request, otherwise the // getn_bpt call will fail when the id numbers change after the delete operation. if (request_del_bpt(bpt.ea)) msg("Queued deleting breakpoint at %a\n", bpt.ea); } } // Run through request queue run_requests(); // Make sure there are no breakpoints left over if (get_bpt_qty() > 0) msg("Failed to delete all breakpoints.\n");