Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-1175: Scroll to current instruction, even if cursor is already there.

Dan11b4a07ef6ba
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
index 5353d98231..2aa6e6b4dc 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
@@ -907,10 +907,12 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
assert Swing.isSwingThread();
return cbGoTo.invokeWithTop(goingTo -> {
if (!isEffectivelyDifferent(goingTo, location)) {
+ getListingPanel().scrollTo(location);
return false;
}
try (Suppression supp = cbGoTo.suppress(location)) {
if (!isEffectivelyDifferent(getLocation(), location)) {
+ getListingPanel().scrollTo(location);
return true;
}
// "Disconnected" providers normally do not allow program changes. Override that