Merge remote-tracking branch 'origin/GP-6391_d-millar_refresh_on_break'

This commit is contained in:
Ryan Kurtz
2026-05-11 14:27:47 -04:00
2 changed files with 7 additions and 1 deletions
@@ -225,6 +225,10 @@ public class DebuggerTrackLocationTrait {
return trackedLocation;
}
public void clearTrackedLocation() {
trackedLocation = null;
}
public MultiStateDockingAction<LocationTrackingSpec> installAction() {
// TODO: Only those Sleigh expressions applicable to the current thread's registers?
action = DebuggerTrackLocationAction.builder(plugin)
@@ -818,7 +818,8 @@ public class DebuggerListingProvider extends CodeViewerProvider {
!gotoProgram.getMemory().contains(location.getAddress())) {
return false;
}
if (super.goTo(gotoProgram, location)) {
if (super.goTo(gotoProgram, location) &&
!isEffectivelyDifferent(getLocation(), location)) {
return true;
}
return false;
@@ -938,6 +939,7 @@ public class DebuggerListingProvider extends CodeViewerProvider {
}
else {
trackingLabel.setForeground(Colors.ERROR);
trackingTrait.clearTrackedLocation();
}
}