Merge pull request #19 from quircks/smpbp

Check breakpoints before icount guard
This commit is contained in:
Stanislav Shwartsman 2022-11-16 17:47:33 +02:00 committed by GitHub
commit 67224281ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -699,13 +699,6 @@ bool BX_CPU_C::dbg_instruction_epilog(void)
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
if (bx_guard.interrupt_requested) {
return(1);
@ -771,6 +764,13 @@ bool BX_CPU_C::dbg_instruction_epilog(void)
}
#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
#if BX_GDBSTUB