Check breakpoints before icount guard
This commit is contained in:
parent
7c548e4dbd
commit
bee4cefb9e
@ -699,13 +699,6 @@ bool BX_CPU_C::dbg_instruction_epilog(void)
|
|||||||
return(1); // on a breakpoint
|
return(1); // on a breakpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
// see if debugger requesting icount guard
|
|
||||||
if (bx_guard.guard_for & BX_DBG_GUARD_ICOUNT) {
|
|
||||||
if (get_icount() >= BX_CPU_THIS_PTR guard_found.icount_max) {
|
|
||||||
return(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// convenient point to see if user requested debug break or typed Ctrl-C
|
// convenient point to see if user requested debug break or typed Ctrl-C
|
||||||
if (bx_guard.interrupt_requested) {
|
if (bx_guard.interrupt_requested) {
|
||||||
return(1);
|
return(1);
|
||||||
@ -771,6 +764,13 @@ bool BX_CPU_C::dbg_instruction_epilog(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// see if debugger requesting icount guard
|
||||||
|
if (bx_guard.guard_for & BX_DBG_GUARD_ICOUNT) {
|
||||||
|
if (get_icount() >= BX_CPU_THIS_PTR guard_found.icount_max) {
|
||||||
|
return(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BX_GDBSTUB
|
#if BX_GDBSTUB
|
||||||
|
Loading…
Reference in New Issue
Block a user