Ghidra is a software reverse engineering (SRE) framework
GP-0: Fix testActionCopyIntoNewProgramCaptureLive
Dan0a5f41102367
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/copying/DebuggerCopyIntoProgramDialog.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/copying/DebuggerCopyIntoProgramDialog.javaindex f4b30cb828..440cb0e4d2 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/copying/DebuggerCopyIntoProgramDialog.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/copying/DebuggerCopyIntoProgramDialog.java@@ -810,7 +810,13 @@ public class DebuggerCopyIntoProgramDialog extends DialogComponentProvider {throws Exception {synchronized (this) {monitor.checkCanceled();- this.captureTask = recorder.captureProcessMemory(new AddressSet(range), monitor, false);+ CompletableFuture<NavigableMap<Address, byte[]>> recCapture =+ recorder.captureProcessMemory(new AddressSet(range), monitor, false);+ this.captureTask = recCapture.thenCompose(__ -> {+ return recorder.getTarget().getModel().flushEvents();+ }).thenCompose(__ -> {+ return recorder.flushTransactions();+ });}try {captureTask.get(); // Not a fan, but whatever.