Merge branch 'GP-5619_emteere_VariousSpeedImprovements_VERSION2'

This commit is contained in:
ghidra1 2025-05-08 16:18:38 -04:00
commit 0bf8f03a1e
79 changed files with 2290 additions and 1275 deletions

View file

@ -24,6 +24,13 @@ import ghidra.trace.model.Trace;
*/
@ServiceInfo(defaultProviderName = "ghidra.app.plugin.core.debug.gui.modules.DebuggerModulesPlugin")
public interface DebuggerAutoMappingService {
/**
* Set the current auto-map specification in the Modules provider
*
* @param spec the new setting
*/
void setAutoMapSpec(AutoMapSpec spec);
/**
* Get the auto-map setting currently active in the Modules provider
*

View file

@ -398,20 +398,18 @@ public enum ControlMode {
return coordinates;
}
ScheduleForm form =
target.getSupportedTimeForm(coordinates.getObject(), coordinates.getSnap());
ScheduleForm form = coordinates.getObject() == null ? null
: target.getSupportedTimeForm(coordinates.getObject(), coordinates.getSnap());
if (form == null) {
if (coordinates.getTime().isSnapOnly() &&
coordinates.getSnap() == target.getSnap()) {
return coordinates;
}
else {
tool.setStatusInfo("""
Cannot navigate time in %s mode. Switch to Trace or Emulate mode first."""
.formatted(name),
true);
return null;
}
tool.setStatusInfo("""
Cannot navigate time in %s mode. Switch to Trace or Emulate mode first."""
.formatted(name),
true);
return null;
}
TraceSchedule norm = form.validate(coordinates.getTrace(), coordinates.getTime());
if (norm != null) {