#include <dbg.hpp>
// Loop through all breakpoints
for (int i = 0; i < get_bpt_qty(); i++)
{
bpt_t bpt;
if (getn_bpt(i, &bpt))
{
// Change the breakpoint to not pause execution when it's hit
bpt.flags ^= BPT_BRK;
// Change the breakpoint to a trace breakpoint
bpt.flags |= BPT_TRACE;
// Run a little IDC every time it's hit
qstrncpy(bpt.condition, "Message("Trace hit!")", sizeof(bpt.condition));
// Update the breakpoint
if (!update_bpt(&bpt))
msg("Failed to update breakpoint at %a\n", bpt.ea);
}
}







