Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/GP-6721_Dan_improveDynamicGoTo--SQUASHED' (Closes #9121)

Ryan Kurtz51e7e2c16845
diff --cc Ghidra/Debug/Debugger-api/src/main/java/ghidra/app/services/DebuggerListingService.java
index bdb764ed3a,9d5fd6ed16..2863195587
--- a/Ghidra/Debug/Debugger-api/src/main/java/ghidra/app/services/DebuggerListingService.java
+++ b/Ghidra/Debug/Debugger-api/src/main/java/ghidra/app/services/DebuggerListingService.java
@@@ -20,9 -18,9 +20,10 @@@ import java.util.List
import ghidra.app.util.viewer.listingpanel.ListingPanel;
import ghidra.debug.api.action.AutoReadMemorySpec;
import ghidra.debug.api.action.LocationTrackingSpec;
+import ghidra.debug.api.listing.DebuggerListing;
import ghidra.debug.api.listing.MultiBlendedListingBackgroundColorModel;
import ghidra.framework.plugintool.ServiceInfo;
+ import ghidra.pcode.exec.SleighUtils.LitIdMode;
import ghidra.program.model.address.Address;
import ghidra.program.util.ProgramSelection;
diff --cc Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
index f31e7da44e,e169477610..ccc59bcbf4
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
@@@ -15,10 -15,9 +15,10 @@@
*/
package ghidra.app.plugin.core.debug.gui.listing;
--import static ghidra.app.plugin.core.debug.gui.DebuggerResources.GROUP_TRANSIENT_VIEWS;
++import static ghidra.app.plugin.core.debug.gui.DebuggerResources.*;
- import java.util.ArrayList;
+ import java.lang.invoke.MethodHandles;
+import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Collectors;
@@@ -26,8 -25,6 +26,7 @@@
import org.jdom2.Element;
import docking.ActionContext;
++import docking.ComponentProvider;
import docking.action.MenuData;
import ghidra.app.events.*;
import ghidra.app.plugin.PluginCategoryNames;
@@@ -373,12 -362,41 +381,22 @@@ public class DebuggerListingPlugin exte
return goTo(loc, centerOnScreen);
}
+ @Override
+ public void setGoToSleighMode(LitIdMode mode) {
+ goToSleighMode = mode;
+ }
+
+ @Override
+ public LitIdMode getGoToSleighMode() {
+ return goToSleighMode;
+ }
+
- /**
- * {@inheritDoc}
- *
- * <p>
- * This is only used by the ProgramManager. I don't need state per program. It would be nice to
- * have state per Trace, but this facility is usurped only for the ProgramManager. Here, it gets
- * in my way, since it restores previous, now incorrect, state on program switch. It tends to
- * override the static sync.
- */
@Override
- public Object getTransientState() {
- // ProgramManager does all this for programs. I don't need that here.
- return new Object[] {};
- }
-
- /**
- * {@inheritDoc}
- *
- * @see #getTransientState()
- */
- @Override
- public void restoreTransientState(Object objectState) {
- /*try (Suppression supp = cbGoTo.suppress(null)) {
- super.restoreTransientState(objectState);
- }*/
+ public List<DebuggerListing> getAllListings() {
+ final List<DebuggerListing> ret = new ArrayList<>();
+ ret.add(connectedProvider);
+ ret.addAll(disconnectedProviders);
+ return ret;
}
@Override