mirror of https://github.com/mgba-emu/mgba.git
Debugger: Define and use mDebuggerModuleClearNeedsCallback
This commit is contained in:
parent
4189a4d731
commit
e518a5ced0
|
@ -377,7 +377,7 @@ void mDebuggerAccessLoggerStop(struct mDebuggerAccessLogger* logger) {
|
|||
logger->d.p->platform->clearBreakpoint(logger->d.p->platform, region->watchpoint);
|
||||
region->watchpoint = -1;
|
||||
}
|
||||
logger->d.needsCallback = false;
|
||||
mDebuggerModuleClearNeedsCallback(&logger->d);
|
||||
}
|
||||
|
||||
static int _mDebuggerAccessLoggerWatchMemoryBlock(struct mDebuggerAccessLogger* logger, const struct mCoreMemoryBlock* block, mDebuggerAccessLogRegionFlags flags) {
|
||||
|
|
|
@ -320,3 +320,8 @@ void mDebuggerModuleSetNeedsCallback(struct mDebuggerModule* debugger) {
|
|||
debugger->needsCallback = true;
|
||||
mDebuggerUpdatePaused(debugger->p);
|
||||
}
|
||||
|
||||
void mDebuggerModuleClearNeedsCallback(struct mDebuggerModule* debugger) {
|
||||
debugger->needsCallback = false;
|
||||
mDebuggerUpdatePaused(debugger->p);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue