Merge remote-tracking branch 'origin/GP-3899_d-millar_memory_stale'

(#5817)
This commit is contained in:
Ryan Kurtz 2023-10-03 11:39:27 -04:00
commit b0a07c7279
2 changed files with 11 additions and 0 deletions

View File

@ -1799,4 +1799,8 @@ public class DbgManagerImpl implements DbgManager {
}
}
public DebugStatus getStatus() {
return status;
}
}

View File

@ -21,6 +21,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
import agent.dbgeng.dbgeng.DebugClient.DebugStatus;
import agent.dbgeng.dbgeng.DebugModuleInfo;
import agent.dbgeng.dbgeng.DebugProcessId;
import agent.dbgeng.dbgeng.DebugThreadId;
@ -113,6 +114,12 @@ public class DbgModelTargetProcessContainerImpl extends DbgModelTargetObjectImpl
DbgReason reason) {
DbgModelTargetProcess process = getTargetProcess(thread.getProcess());
process.threadStateChangedSpecific(thread, state);
if (!getManager().getStatus().equals(DebugStatus.STEP_INTO)) {
DbgModelTargetMemoryContainer memory = process.getMemory();
if (memory != null) {
memory.requestElements(RefreshBehavior.REFRESH_ALWAYS);
}
}
}
@Override