Debugger: Define and use mDebuggerModuleClearNeedsCallback

This commit is contained in:
Vicki Pfau 2025-01-19 16:57:30 -08:00
parent 4189a4d731
commit e518a5ced0
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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);
}