#include <dbg.hpp> // Loop through all trace events for (int i = 0; i < get_tev_qty(); i++) { tev_info_t tev; // Get the trace event information get_tev_info(i, &tev); // If it's an breakpoint trace event... if (tev.type == tev_bpt) { ea_t addr; if ((addr = get_bpt_tev_ea(i)) != BADADDR) msg("Breakpoint trace hit at %a\n", addr); } }