void apply_breakpoints() { CEmulator* emu = CEmulator::theEmulator; if (!emu) return ; CEmulatorConfig* config = emu->config; for(int i=0;i<config->nb_bps;i++) set_bp(config->BPs[i].addr,config->BPs[i].mode,config->BPs[i].value,config->BPs[i].check); }
int main(){ /* for(c=-(0x8000);c<0x8000;++c){ nemu_assert(c==(F2int(int2F(c)))); } set_bp(); f = 2.0; unsigned int u = *(unsigned int *)&f; nemu_assert(u>0); set_bp(); */ a = f2F(20000.0); nemu_assert((int2F(20000)-a)<5); set_bp(); b = F2int(a); nemu_assert(2==b); HIT_GOOD_TRAP; return 0; }
int gdbr_set_hwa(libgdbr_t *g, ut64 address, const char *conditions, int sizebp) { return set_bp (g, address, conditions, ACCESS_WATCHPOINT, sizebp); }
int gdbr_set_hwbp(libgdbr_t *g, ut64 address, const char *conditions, int sizebp) { return set_bp (g, address, conditions, HARDWARE_BREAKPOINT, sizebp); }
int fun20() { set_bp(); return 13; }
int fun1() { set_bp(); return fun2(); }
int fun5() { set_bp(); return fun6(); }
int fun17() { set_bp(); return fun18(); }
int fun9() { set_bp(); return fun10(); }
int fun7() { set_bp(); return fun8(); }
int fun11() { set_bp(); return fun12(); }
int fun13() { set_bp(); return fun14(); }
int fun15() { set_bp(); return fun16(); }
int gdbr_set_bp(libgdbr_t *g, ut64 address, const char *conditions) { return set_bp (g, address, conditions, BREAKPOINT); }
int fun3() { set_bp(); return fun4(); }
int gdbr_set_hwbp(libgdbr_t* g, uint64_t address, const char* conditions) { return set_bp (g, address, conditions, HARDWARE_BREAKPOINT); }
int fun19() { set_bp(); return fun20(); }