Ghidra is a software reverse engineering (SRE) framework
GP-2651: Update Debugger screenshots
Dan274a13a76175
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.pngindex 79f8089b97..fb80f86668 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerGoToDialog.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerGoToDialog.pngindex ae51a07ff4..bdbc14fcca 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerGoToDialog.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerGoToDialog.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerListingPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerListingPlugin.pngindex 00106d0cea..69777a726d 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerListingPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerListingPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerMemoryBytesPlugin/images/DebuggerMemoryBytesPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerMemoryBytesPlugin/images/DebuggerMemoryBytesPlugin.pngindex f3a01f60b9..2ec3857509 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerMemoryBytesPlugin/images/DebuggerMemoryBytesPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerMemoryBytesPlugin/images/DebuggerMemoryBytesPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/images/DebuggerModulesPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/images/DebuggerModulesPlugin.pngindex a0b9768c89..47a07227b9 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/images/DebuggerModulesPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/images/DebuggerModulesPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerBreakpointDialog.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerBreakpointDialog.pngindex b605584a9a..de3d6988cf 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerBreakpointDialog.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerBreakpointDialog.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerMethodInvocationDialog_ForLaunch.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerMethodInvocationDialog_ForLaunch.pngindex 644a789441..67d725b6cf 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerMethodInvocationDialog_ForLaunch.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerMethodInvocationDialog_ForLaunch.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerObjectsPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerObjectsPlugin.pngindex e9b59b44bf..be3a5986ef 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerObjectsPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/images/DebuggerObjectsPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerPcodeStepperPlugin/images/DebuggerPcodeStepperPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerPcodeStepperPlugin/images/DebuggerPcodeStepperPlugin.pngindex 112f3f6f3c..8ea113b519 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerPcodeStepperPlugin/images/DebuggerPcodeStepperPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerPcodeStepperPlugin/images/DebuggerPcodeStepperPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerRegistersPlugin/images/DebuggerRegistersPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerRegistersPlugin/images/DebuggerRegistersPlugin.pngindex fcd7d3a78f..519a66d12c 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerRegistersPlugin/images/DebuggerRegistersPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerRegistersPlugin/images/DebuggerRegistersPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerStackPlugin/images/DebuggerStackPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerStackPlugin/images/DebuggerStackPlugin.pngindex cac68dd738..1484abee26 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerStackPlugin/images/DebuggerStackPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerStackPlugin/images/DebuggerStackPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerConnectDialog.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerConnectDialog.pngindex c509e63e89..e6f95c2e0f 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerConnectDialog.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerConnectDialog.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerTargetsPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerTargetsPlugin.pngindex ea40e45954..b0e988ccb9 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerTargetsPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTargetsPlugin/images/DebuggerTargetsPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerThreadsPlugin/images/DebuggerThreadsPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerThreadsPlugin/images/DebuggerThreadsPlugin.pngindex 3a10d754a3..cd304800d4 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerThreadsPlugin/images/DebuggerThreadsPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerThreadsPlugin/images/DebuggerThreadsPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTimeSelectionDialog.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTimeSelectionDialog.pngindex e4a617d110..5beb6d5f02 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTimeSelectionDialog.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTimeSelectionDialog.png differdiff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTraceViewDiffPlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTraceViewDiffPlugin.pngindex 7056ec724d..274676cf17 100644Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTraceViewDiffPlugin.png and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerTraceViewDiffPlugin/images/DebuggerTraceViewDiffPlugin.png differdiff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/GenericDebuggerProgramLaunchOffer.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/GenericDebuggerProgramLaunchOffer.javaindex ca1a15604b..40b3272bec 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/GenericDebuggerProgramLaunchOffer.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/GenericDebuggerProgramLaunchOffer.java@@ -37,6 +37,11 @@ public class GenericDebuggerProgramLaunchOffer extends AbstractDebuggerProgramLareturn program.getName();}+ @Override+ public String getButtonTitle() {+ return "Launch";+ }+@Overridepublic String getMenuTitle() {return model.getBrief();diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.javaindex fa2a0d3b4a..813045526a 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java@@ -164,8 +164,8 @@ public class ObjectNode extends GTreeSlowLoadingNode { //extends GTreeNodeObjectContainer rootContainer = provider.getRoot();Map<String, Object> rootMap = rootContainer.getAttributeMap();if (rootMap.containsKey(TargetEventScope.EVENT_OBJECT_ATTRIBUTE_NAME)) {- TargetThread targetProcess =- (TargetThread) rootMap.get(TargetEventScope.EVENT_OBJECT_ATTRIBUTE_NAME);+ TargetObject targetProcess =+ (TargetObject) rootMap.get(TargetEventScope.EVENT_OBJECT_ATTRIBUTE_NAME);if (container.getTargetObject().equals(targetProcess)) {return ICON_EVENT;}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesProvider.javaindex ef3560dae5..b7c8edd515 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesProvider.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesProvider.java@@ -319,7 +319,12 @@ public class DebuggerWatchesProvider extends ComponentProviderAdapterPcodeExecutor<WatchValue> asyncWatchExecutor; // name is reminder to use asynchronouslyPcodeExecutor<byte[]> prevValueExecutor;// TODO: We could do better, but the tests can't sync if we do multi-threaded evaluation- ExecutorService workQueue = Executors.newSingleThreadExecutor();+ ExecutorService workQueue = Executors.newSingleThreadExecutor(new ThreadFactory() {+ @Override+ public Thread newThread(Runnable r) {+ return new Thread(r, "Watch Evaluator");+ }+ });@AutoServiceConsumedprivate DebuggerListingService listingService; // For goto and selectiondiff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/emulation/data/DefaultPcodeDebuggerMemoryAccess.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/emulation/data/DefaultPcodeDebuggerMemoryAccess.javaindex fc5679c9b0..ffcbb32a14 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/emulation/data/DefaultPcodeDebuggerMemoryAccess.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/emulation/data/DefaultPcodeDebuggerMemoryAccess.java@@ -109,6 +109,9 @@ public class DefaultPcodeDebuggerMemoryAccess extends DefaultPcodeTraceMemoryAcc// TODO: Expand to block? DON'T OVERWRITE KNOWN!DebuggerStaticMappingService mappingService =tool.getService(DebuggerStaticMappingService.class);+ if (mappingService == null) {+ return false;+ }byte[] data = new byte[4096];Trace trace = platform.getTrace();diff --git a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/objects/DebuggerObjectsPluginScreenShots.java b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/objects/DebuggerObjectsPluginScreenShots.javaindex 2c52fe4582..034c914f03 100644--- a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/objects/DebuggerObjectsPluginScreenShots.java+++ b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/objects/DebuggerObjectsPluginScreenShots.java@@ -51,10 +51,13 @@ public class DebuggerObjectsPluginScreenShots extends GhidraScreenShotGeneratorstatic class ActionyTestTargetObjectextends DefaultTestTargetObject<TestTargetObject, TestTargetObject>implements TargetInterpreter, TargetResumable, TargetSteppable, TargetLauncher,- TargetAttacher, TargetAttachable {+ TargetAttacher, TargetAttachable, TargetThread, TargetExecutionStateful {public ActionyTestTargetObject(TestTargetObject parent, String name, String typeHint) {super(parent, name, typeHint);+ setAttributes(Map.of(+ TargetExecutionStateful.STATE_ATTRIBUTE_NAME, TargetExecutionState.STOPPED),+ "Init");}@Override@@ -94,7 +97,7 @@ public class DebuggerObjectsPluginScreenShots extends GhidraScreenShotGenerator}/**- * NOTE: The icon selection looks like it relies of "duck typing", which is probably not the+ * NOTE: The icon selection looks like it relies on "duck typing", which is probably not the* Right Way. I would have expected it to consume the type hint. Eh. Anyway, let's take a* screenshot, shall we?*@@ -203,10 +206,10 @@ public class DebuggerObjectsPluginScreenShots extends GhidraScreenShotGeneratorwaitForSwing();mb.testModel.session.requestFocus(mb.testModel.session);waitForSwing();- mb.testModel.session.requestFocus(thread1a34);- waitForSwing();teEnvBlock.changeAttributes(List.of("BOGUS FOCUS"), List.of(), Map.of(), "Clean");waitForSwing();+ mb.testModel.session.requestFocus(thread1a34);+ waitForSwing();captureIsolatedProvider(objectsProvider, 600, 600);}diff --git a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperPluginScreenShots.java b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperPluginScreenShots.javaindex bd4be62d2e..921df6935b 100644--- a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperPluginScreenShots.java+++ b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperPluginScreenShots.java@@ -80,8 +80,9 @@ public class DebuggerPcodeStepperPluginScreenShots extends GhidraScreenShotGenertraceManager.openTrace(tb.trace);traceManager.activateThread(thread);traceManager.activateTime(TraceSchedule.parse("0:.t0-7"));+ waitForSwing();- pcodeProvider.mainPanel.setDividerLocation(0.4);+ runSwing(() -> pcodeProvider.mainPanel.setDividerLocation(360));captureIsolatedProvider(pcodeProvider, 900, 300);}}diff --git a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesPluginScreenShots.java b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesPluginScreenShots.javaindex 0debdde11c..1d6216be49 100644--- a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesPluginScreenShots.java+++ b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/watch/DebuggerWatchesPluginScreenShots.java@@ -96,6 +96,8 @@ public class DebuggerWatchesPluginScreenShots extends GhidraScreenShotGeneratorwaitForSwing();traceManager.activateSnap(snap1);waitForSwing();+ watchesProvider.waitEvaluate(1000);+ waitForSwing();captureIsolatedProvider(watchesProvider, 800, 400);}diff --git a/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/target/TargetMethod.java b/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/target/TargetMethod.javaindex 0dd3fc9cb2..79648f77b8 100644--- a/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/target/TargetMethod.java+++ b/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/target/TargetMethod.java@@ -198,7 +198,11 @@ public interface TargetMethod extends TargetObject {@SafeVarargspublic static TargetParameterMap ofEntries(Entry<String, ParameterDescription<?>>... entries) {- return new ImmutableTargetParameterMap(Map.ofEntries(entries));+ Map<String, ParameterDescription<?>> ordered = new LinkedHashMap<>();+ for (Entry<String, ParameterDescription<?>> ent: entries) {+ ordered.put(ent.getKey(), ent.getValue());+ }+ return new ImmutableTargetParameterMap(ordered);}}diff --git a/Ghidra/Debug/Framework-Debugging/src/test/java/ghidra/dbg/model/TestMimickJavaLauncher.java b/Ghidra/Debug/Framework-Debugging/src/test/java/ghidra/dbg/model/TestMimickJavaLauncher.javaindex 73446a1e1f..a72c45761d 100644--- a/Ghidra/Debug/Framework-Debugging/src/test/java/ghidra/dbg/model/TestMimickJavaLauncher.java+++ b/Ghidra/Debug/Framework-Debugging/src/test/java/ghidra/dbg/model/TestMimickJavaLauncher.java@@ -34,22 +34,22 @@ public class TestMimickJavaLaunchersetAttributes(List.of(), Map.of(TargetMethod.PARAMETERS_ATTRIBUTE_NAME, TargetParameterMap.ofEntries(- Map.entry("Suspend",- ParameterDescription.create(Boolean.class, "Suspend", false, true, "Suspend",- "")),- Map.entry("Quote",- ParameterDescription.create(String.class, "Quote", false, "\"", "Quote", "")),+ Map.entry("Home",+ ParameterDescription.create(String.class, "Home", false,+ "/opt/java-17-amazon-corretto", "Home", "")),Map.entry("Launcher",ParameterDescription.create(String.class, "Launcher", false, "java", "Launcher","")),- Map.entry("Options",- ParameterDescription.create(String.class, "Options", false, "", "Options", "")),Map.entry("Main",ParameterDescription.create(String.class, "Main", false, "hw.HelloWorld","Main", "")),- Map.entry("Home",- ParameterDescription.create(String.class, "Home", false,- "/opt/java-11-amazon-corretto", "Home", "")))),+ Map.entry("Options",+ ParameterDescription.create(String.class, "Options", false, "", "Options", "")),+ Map.entry("Suspend",+ ParameterDescription.create(Boolean.class, "Suspend", false, true, "Suspend",+ "")),+ Map.entry("Quote",+ ParameterDescription.create(String.class, "Quote", false, "\"", "Quote", "")))),"Initialized");}