mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-853: Responding to CLI-driven memory changes in dbgeng
This commit is contained in:
parent
5b07797cb8
commit
a887355d29
14 changed files with 287 additions and 41 deletions
|
@ -111,7 +111,6 @@ public class GdbModelImpl extends AbstractDebuggerObjectModel {
|
|||
break;
|
||||
}
|
||||
case RUNNING: {
|
||||
session.invalidateMemoryAndRegisterCaches();
|
||||
session.setAccessible(false);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -441,9 +441,13 @@ public class GdbModelTargetInferior
|
|||
inferiorRunning(sco.getReason());
|
||||
List<Object> params = new ArrayList<>();
|
||||
gatherThreads(params, sco.getAffectedThreads());
|
||||
if (targetEventThread == null && !params.isEmpty()) {
|
||||
targetEventThread = threads.getTargetThread(sco.getAffectedThreads().iterator().next());
|
||||
}
|
||||
if (targetEventThread != null) {
|
||||
impl.session.getListeners().fire.event(impl.session, targetEventThread,
|
||||
TargetEventType.RUNNING, "Running", params);
|
||||
invalidateMemoryAndRegisterCaches();
|
||||
}
|
||||
}
|
||||
if (sco.getState() != GdbState.STOPPED) {
|
||||
|
|
|
@ -181,6 +181,8 @@ public class GdbModelTargetProcessMemory
|
|||
});
|
||||
}
|
||||
|
||||
// TODO: Seems this is only called when sco.getState() == STOPPED.
|
||||
// Maybe should name it such
|
||||
public CompletableFuture<Void> stateChanged(GdbStateChangeRecord sco) {
|
||||
return requestElements(false).thenCompose(__ -> {
|
||||
AsyncFence fence = new AsyncFence();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue