Ghidra is a software reverse engineering (SRE) framework
GP-1012: Working a variety of breakpoint UI issues.
Dan615a4d09dc09
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointEnablementTableCellEditor.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointEnablementTableCellEditor.javaindex 41ad760dcb..2a136d91f8 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointEnablementTableCellEditor.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointEnablementTableCellEditor.java@@ -70,11 +70,8 @@ public class DebuggerBreakpointEnablementTableCellEditor extends AbstractCellEdi@Overridepublic void actionPerformed(ActionEvent e) {- // TODO: Consider the current trace if "current trace only" filter is on?- boolean curEn = row.getLogicalBreakpoint().getMappedTraces().isEmpty()- ? value.enabled // Toggle when no traces are mappable- : value == Enablement.ENABLED; // Make consistent as enabled if mappable- value = curEn ? Enablement.DISABLED : Enablement.ENABLED;+ boolean mapped = row.isMapped();+ value = value.getToggled(mapped);fireEditingStopped();}}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryPlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryPlugin.javadeleted file mode 100644index cdd4627fac..0000000000--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryPlugin.java+++ /dev/null@@ -1,20 +0,0 @@-/* ###- * IP: GHIDRA- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package ghidra.app.plugin.core.debug.gui.breakpoint;--public class DebuggerBreakpointHistoryPlugin {--}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryProvider.javadeleted file mode 100644index 99c401c9c6..0000000000--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointHistoryProvider.java+++ /dev/null@@ -1,20 +0,0 @@-/* ###- * IP: GHIDRA- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package ghidra.app.plugin.core.debug.gui.breakpoint;--public class DebuggerBreakpointHistoryProvider {--}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPlugin.javaindex e25d603d85..910e1ca898 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPlugin.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPlugin.java@@ -55,23 +55,22 @@ import ghidra.trace.model.breakpoint.TraceBreakpointKind.TraceBreakpointKindSet;import ghidra.trace.model.program.TraceProgramView;import ghidra.util.Msg;-@PluginInfo( //- shortDescription = "Debugger breakpoint marker service plugin", //- description = "Marks logical breakpoints in the listings", //- category = PluginCategoryNames.DEBUGGER, //- packageName = DebuggerPluginPackage.NAME, //- status = PluginStatus.RELEASED, //- eventsConsumed = { //- ProgramOpenedPluginEvent.class, //- ProgramClosedPluginEvent.class, //- TraceOpenedPluginEvent.class, //- TraceClosedPluginEvent.class, //- }, //- servicesRequired = { //- DebuggerLogicalBreakpointService.class, //- MarkerService.class, //- } //-)+@PluginInfo(+ shortDescription = "Debugger breakpoint marker service plugin",+ description = "Marks logical breakpoints and provides actions in the listings",+ category = PluginCategoryNames.DEBUGGER,+ packageName = DebuggerPluginPackage.NAME,+ status = PluginStatus.RELEASED,+ eventsConsumed = {+ ProgramOpenedPluginEvent.class,+ ProgramClosedPluginEvent.class,+ TraceOpenedPluginEvent.class,+ TraceClosedPluginEvent.class,+ },+ servicesRequired = {+ DebuggerLogicalBreakpointService.class,+ MarkerService.class,+ })public class DebuggerBreakpointMarkerPlugin extends Pluginimplements PopupActionProvider {@@ -99,8 +98,9 @@ public class DebuggerBreakpointMarkerPlugin extends Plugin}/**- * Attempt to derive an address from the given context+ * Attempt to derive a location from the given context*+ * <p>* Currently, this supports {@link ProgramLocationActionContext} and {@link MarkerLocation}.** @param context a possible location context@@ -215,6 +215,9 @@ public class DebuggerBreakpointMarkerPlugin extends Pluginreturn result;}+ /**+ * A variety of marker sets (one for each logical state) attached to a program or trace view+ */protected class BreakpointMarkerSets {final Program program;@@ -225,7 +228,7 @@ public class DebuggerBreakpointMarkerPlugin extends Pluginfinal MarkerSet mixedED;final MarkerSet mixedDE;- public BreakpointMarkerSets(Program program) {+ protected BreakpointMarkerSets(Program program) {this.program = program;// Prevent default bookmark icons from obscuring breakpoints@@ -542,16 +545,23 @@ public class DebuggerBreakpointMarkerPlugin extends Pluginreturn;}Enablement en = breakpointService.computeEnablement(bs, loc);- Trace trace = getTraceFromContext(context); // OK if null - means all traces- if (en.enabled) {- breakpointService.disableAll(bs, trace).exceptionally(ex -> {- breakpointError(NAME, "Could not disable breakpoints", ex);+ /**+ * If we're in the static listing, this will return null, indicating we should use the+ * program's perspective. The methods taking trace should accept a null trace and behave+ * accordingly. If in the dynamic listing, we act in the context of the returned trace.+ */+ Trace trace = getTraceFromContext(context);+ boolean mapped = breakpointService.anyMapped(bs, trace);+ Enablement toggled = en = en.getToggled(mapped);+ if (toggled.enabled) {+ breakpointService.enableAll(bs, trace).exceptionally(ex -> {+ breakpointError(NAME, "Could not enable breakpoints", ex);return null;});}else {- breakpointService.enableAll(bs, trace).exceptionally(ex -> {- breakpointError(NAME, "Could not enable breakpoints", ex);+ breakpointService.disableAll(bs, trace).exceptionally(ex -> {+ breakpointError(NAME, "Could not disable breakpoints", ex);return null;});}@@ -954,6 +964,12 @@ public class DebuggerBreakpointMarkerPlugin extends Plugin.collect(Collectors.toSet());}+ /**+ * Instantiate a marker set for the given program or trace view+ *+ * @param program the (static) program or (dynamic) trace view+ * @return the marker sets+ */protected BreakpointMarkerSets createMarkers(Program program) {synchronized (markersByProgram) {BreakpointMarkerSets newSets = new BreakpointMarkerSets(program);diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProvider.javaindex 3a613f554d..16e495a1b7 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProvider.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProvider.java@@ -15,8 +15,6 @@*/package ghidra.app.plugin.core.debug.gui.breakpoint;-import static ghidra.lifecycle.Unfinished.TODO;-import java.awt.BorderLayout;import java.awt.event.*;import java.util.*;@@ -62,7 +60,7 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterprotected enum LogicalBreakpointTableColumnsimplements EnumeratedTableColumn<LogicalBreakpointTableColumns, LogicalBreakpointRow> {- ENABLED("Enabled", Enablement.class, LogicalBreakpointRow::getEnablement, LogicalBreakpointRow::setEnablement, true),+ ENABLED("", Enablement.class, LogicalBreakpointRow::getEnablement, LogicalBreakpointRow::setEnablement, true),IMAGE("Image", String.class, LogicalBreakpointRow::getImageName, true),ADDRESS("Address", Address.class, LogicalBreakpointRow::getAddress, true),LENGTH("Length", Long.class, LogicalBreakpointRow::getLength, true),@@ -138,7 +136,7 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterprotected enum BreakpointLocationTableColumnsimplements EnumeratedTableColumn<BreakpointLocationTableColumns, BreakpointLocationRow> {- ENABLED("Enabled", Boolean.class, BreakpointLocationRow::isEnabled, BreakpointLocationRow::setEnabled, true),+ ENABLED("", Boolean.class, BreakpointLocationRow::isEnabled, BreakpointLocationRow::setEnabled, true),NAME("Name", String.class, BreakpointLocationRow::getName, BreakpointLocationRow::setName, true),ADDRESS("Address", Address.class, BreakpointLocationRow::getAddress, true),TRACE("Trace", String.class, BreakpointLocationRow::getTraceName, true),@@ -223,11 +221,9 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterreturn !ctx.getSelection().isEmpty();}if (context instanceof DebuggerBreakpointLocationsActionContext) {- // TODO: Allow toggling of individual breakpoint locations, if model permits- return false;- /*DebuggerBreakpointLocationsActionContext ctx =+ DebuggerBreakpointLocationsActionContext ctx =(DebuggerBreakpointLocationsActionContext) context;- return !ctx.getSelection().isEmpty();*/+ return !ctx.getSelection().isEmpty();}return false;}@@ -261,7 +257,11 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterif (context instanceof DebuggerBreakpointLocationsActionContext) {DebuggerBreakpointLocationsActionContext ctx =(DebuggerBreakpointLocationsActionContext) context;- TODO("Toggling individual breakpoint locations", ctx);+ Collection<TraceBreakpoint> sel = ctx.getSelection();+ breakpointService.enableLocs(sel).exceptionally(ex -> {+ breakpointError("Enable Breakpoints", "Could not enable breakpoints", ex);+ return null;+ });}}@@ -325,7 +325,11 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterif (context instanceof DebuggerBreakpointLocationsActionContext) {DebuggerBreakpointLocationsActionContext ctx =(DebuggerBreakpointLocationsActionContext) context;- TODO("Toggling individual breakpoint locations", ctx);+ Collection<TraceBreakpoint> sel = ctx.getSelection();+ breakpointService.disableLocs(sel).exceptionally(ex -> {+ breakpointError("Disable Breakpoints", "Could not disable breakpoints", ex);+ return null;+ });}}@@ -385,7 +389,11 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterif (context instanceof DebuggerBreakpointLocationsActionContext) {DebuggerBreakpointLocationsActionContext ctx =(DebuggerBreakpointLocationsActionContext) context;- TODO("Clearing individual breakpoint locations", ctx);+ Collection<TraceBreakpoint> sel = ctx.getSelection();+ breakpointService.deleteLocs(sel).exceptionally(ex -> {+ breakpointError("Clear Breakpoints", "Could not clear breakpoints", ex);+ return null;+ });}}@@ -431,16 +439,15 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapter@Overridepublic void actionPerformed(ActionContext context) {- Set<LogicalBreakpoint> all = breakpointService.getAllBreakpoints();- for (LogicalBreakpoint lb : all) {- if (lb.computeEnablement() != Enablement.INEFFECTIVE_ENABLED) {- continue;- }- if (lb.getMappedTraces().isEmpty()) {- continue;- }- lb.enable();- }+ Set<LogicalBreakpoint> enablable = breakpointService.getAllBreakpoints()+ .stream()+ .filter(lb -> lb.computeEnablement() == Enablement.INEFFECTIVE_ENABLED &&+ !lb.getMappedTraces().isEmpty())+ .collect(Collectors.toSet());+ breakpointService.enableAll(enablable, null).exceptionally(ex -> {+ breakpointError("Make Breakpoints Effective", "Could not enable breakpoints", ex);+ return null;+ });}}@@ -878,6 +885,11 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapter.stream().map(LogicalBreakpointRow::getLogicalBreakpoint).collect(Collectors.toList());+ // Do this first to prevent overriding context in event chain+ if (!set.isEmpty()) {+ locationTable.clearSelection();+ locationTable.getSelectionManager().clearSavedSelection();+ }myActionContext = new DebuggerLogicalBreakpointsActionContext(set);if (isFilterLocationsByBreakpoints()) {locationTableModel.fireTableDataChanged();@@ -912,7 +924,13 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapter.stream().map(BreakpointLocationRow::getTraceBreakpoint).collect(Collectors.toList());+ // Do this first to avoid overriding context in event chain+ if (!set.isEmpty()) {+ breakpointTable.clearSelection();+ breakpointTable.getSelectionManager().clearSavedSelection();+ }myActionContext = new DebuggerBreakpointLocationsActionContext(set);+ contextChanged();});locationTable.addMouseListener(new MouseAdapter() {@Override@@ -942,7 +960,8 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterbptEnCol.setCellRenderer(new DebuggerBreakpointEnablementTableCellRenderer());bptEnCol.setCellEditor(new DebuggerBreakpointEnablementTableCellEditor(breakpointFilterPanel));- bptEnCol.setPreferredWidth(30);+ bptEnCol.setMaxWidth(24);+ bptEnCol.setMinWidth(24);TableColumn bptAddrCol =bptColModel.getColumn(LogicalBreakpointTableColumns.ADDRESS.ordinal());bptAddrCol.setPreferredWidth(150);@@ -961,7 +980,8 @@ public class DebuggerBreakpointsProvider extends ComponentProviderAdapterlocColModel.getColumn(BreakpointLocationTableColumns.ENABLED.ordinal());locEnCol.setCellRenderer(new DebuggerBreakpointLocEnabledTableCellRenderer());locEnCol.setCellEditor(new DebuggerBreakpointLocEnabledTableCellEditor());- locEnCol.setPreferredWidth(30);+ locEnCol.setMaxWidth(24);+ locEnCol.setMinWidth(24);TableColumn locAddrCol =locColModel.getColumn(BreakpointLocationTableColumns.ADDRESS.ordinal());locAddrCol.setCellRenderer(CustomToStringCellRenderer.MONO_OBJECT);diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/LogicalBreakpointRow.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/LogicalBreakpointRow.javaindex 2b774d3130..026da8913f 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/LogicalBreakpointRow.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/breakpoint/LogicalBreakpointRow.java@@ -117,4 +117,16 @@ public class LogicalBreakpointRow {}return lb.getTraceBreakpoints().size();}++ /**+ * Check if it has mapped locations, regardless of whether those locations are present+ *+ * @return true if mapped (or mappable), false if not.+ */+ public boolean isMapped() {+ if (provider.isFilterByCurrentTrace()) {+ return lb.getMappedTraces().contains(provider.currentTrace);+ }+ return !lb.getMappedTraces().isEmpty();+ }}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/BreakpointActionSet.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/BreakpointActionSet.javaindex b701541b40..db6f9761ba 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/BreakpointActionSet.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/BreakpointActionSet.java@@ -19,12 +19,63 @@ import java.util.LinkedHashSet;import java.util.concurrent.CompletableFuture;import ghidra.async.AsyncFence;+import ghidra.dbg.target.*;/*** A de-duplicated collection of target breakpoint actions necessary to implement a logical* breakpoint action.*/public class BreakpointActionSet extends LinkedHashSet<BreakpointActionItem> {++ public EnableBreakpointActionItem planEnable(TargetBreakpointLocation loc) {+ if (loc instanceof TargetTogglable) {+ EnableBreakpointActionItem action =+ new EnableBreakpointActionItem((TargetTogglable) loc);+ add(action);+ return action;+ }+ TargetBreakpointSpec spec = loc.getSpecification();+ if (spec instanceof TargetTogglable) {+ EnableBreakpointActionItem action = new EnableBreakpointActionItem(spec);+ add(action);+ return action;+ }+ return null;+ }++ public DisableBreakpointActionItem planDisable(TargetBreakpointLocation loc) {+ if (loc instanceof TargetTogglable) {+ DisableBreakpointActionItem action =+ new DisableBreakpointActionItem((TargetTogglable) loc);+ add(action);+ return action;+ }+ TargetBreakpointSpec spec = loc.getSpecification();+ if (spec instanceof TargetTogglable) {+ DisableBreakpointActionItem action = new DisableBreakpointActionItem(spec);+ add(action);+ return action;+ }+ return null;+ }++ public DeleteBreakpointActionItem planDelete(TargetBreakpointLocation loc) {+ if (loc instanceof TargetDeletable) {+ DeleteBreakpointActionItem action =+ new DeleteBreakpointActionItem((TargetDeletable) loc);+ add(action);+ return action;+ }+ TargetBreakpointSpec spec = loc.getSpecification();+ if (spec instanceof TargetTogglable) {+ DeleteBreakpointActionItem action =+ new DeleteBreakpointActionItem((TargetDeletable) spec);+ add(action);+ return action;+ }+ return null;+ }+/*** Carry out the actions in the order they were added*diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DebuggerLogicalBreakpointServicePlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DebuggerLogicalBreakpointServicePlugin.javaindex 8469ae9020..0e8f152161 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DebuggerLogicalBreakpointServicePlugin.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DebuggerLogicalBreakpointServicePlugin.java@@ -17,6 +17,7 @@ package ghidra.app.plugin.core.debug.service.breakpoint;import java.util.*;import java.util.concurrent.CompletableFuture;+import java.util.function.BiConsumer;import java.util.function.Consumer;import org.apache.commons.collections4.IteratorUtils;@@ -32,6 +33,9 @@ import ghidra.app.plugin.core.debug.event.TraceClosedPluginEvent;import ghidra.app.plugin.core.debug.event.TraceOpenedPluginEvent;import ghidra.app.plugin.core.debug.service.breakpoint.LogicalBreakpointInternal.ProgramBreakpoint;import ghidra.app.services.*;+import ghidra.dbg.target.TargetBreakpointLocation;+import ghidra.dbg.target.TargetObject;+import ghidra.dbg.util.PathUtils;import ghidra.framework.model.DomainObject;import ghidra.framework.model.DomainObjectChangeRecord;import ghidra.framework.plugintool.*;@@ -52,27 +56,26 @@ import ghidra.util.Swing;import ghidra.util.datastruct.CollectionChangeListener;import ghidra.util.datastruct.ListenerSet;-@PluginInfo( //- shortDescription = "Debugger logical breakpoints service plugin", //- description = "Aggregates breakpoints from open programs and live traces", //- category = PluginCategoryNames.DEBUGGER, //- packageName = DebuggerPluginPackage.NAME, //- status = PluginStatus.RELEASED, //- eventsConsumed = { //- ProgramOpenedPluginEvent.class, //- ProgramClosedPluginEvent.class, //- TraceOpenedPluginEvent.class, //- TraceClosedPluginEvent.class, //- }, //- servicesRequired = { //- DebuggerTraceManagerService.class, //- DebuggerModelService.class, //- DebuggerStaticMappingService.class, //- }, //- servicesProvided = { //- DebuggerLogicalBreakpointService.class, //- } //-)+@PluginInfo(+ shortDescription = "Debugger logical breakpoints service plugin",+ description = "Aggregates breakpoints from open programs and live traces",+ category = PluginCategoryNames.DEBUGGER,+ packageName = DebuggerPluginPackage.NAME,+ status = PluginStatus.RELEASED,+ eventsConsumed = {+ ProgramOpenedPluginEvent.class,+ ProgramClosedPluginEvent.class,+ TraceOpenedPluginEvent.class,+ TraceClosedPluginEvent.class,+ },+ servicesRequired = {+ DebuggerTraceManagerService.class,+ DebuggerModelService.class,+ DebuggerStaticMappingService.class,+ },+ servicesProvided = {+ DebuggerLogicalBreakpointService.class,+ })public class DebuggerLogicalBreakpointServicePlugin extends Pluginimplements DebuggerLogicalBreakpointService {@@ -1028,54 +1031,76 @@ public class DebuggerLogicalBreakpointServicePlugin extends Plugin(t, a) -> placeBreakpointAt(t, a, length, kinds));}- @Override- public CompletableFuture<Void> enableAll(Collection<LogicalBreakpoint> col, Trace trace) {+ protected CompletableFuture<Void> actOnAll(Collection<LogicalBreakpoint> col, Trace trace,+ Consumer<LogicalBreakpoint> consumerForProgram,+ BiConsumer<BreakpointActionSet, LogicalBreakpointInternal> consumerForTarget) {BreakpointActionSet actions = new BreakpointActionSet();for (LogicalBreakpoint lb : col) {if (trace == null) {- lb.enableForProgram();+ consumerForProgram.accept(lb);}if (!(lb instanceof LogicalBreakpointInternal)) {continue;}LogicalBreakpointInternal lbi = (LogicalBreakpointInternal) lb;- lbi.planEnable(actions, trace);+ consumerForTarget.accept(actions, lbi);}return actions.execute();}+ @Override+ public CompletableFuture<Void> enableAll(Collection<LogicalBreakpoint> col, Trace trace) {+ return actOnAll(col, trace, LogicalBreakpoint::enableForProgram,+ (actions, lbi) -> lbi.planEnable(actions, trace));+ }+@Overridepublic CompletableFuture<Void> disableAll(Collection<LogicalBreakpoint> col, Trace trace) {- BreakpointActionSet actions = new BreakpointActionSet();- for (LogicalBreakpoint lb : col) {- if (trace == null) {- lb.disableForProgram();- }- if (!(lb instanceof LogicalBreakpointInternal)) {- continue;- }- LogicalBreakpointInternal lbi = (LogicalBreakpointInternal) lb;- lbi.planDisable(actions, trace);- }- return actions.execute();+ return actOnAll(col, trace, LogicalBreakpoint::disableForProgram,+ (actions, lbi) -> lbi.planDisable(actions, trace));}@Overridepublic CompletableFuture<Void> deleteAll(Collection<LogicalBreakpoint> col, Trace trace) {+ return actOnAll(col, trace, LogicalBreakpoint::deleteForProgram,+ (actions, lbi) -> lbi.planDelete(actions, trace));+ }++ protected CompletableFuture<Void> actOnLocs(Collection<TraceBreakpoint> col,+ BiConsumer<BreakpointActionSet, TargetBreakpointLocation> consumer) {BreakpointActionSet actions = new BreakpointActionSet();- for (LogicalBreakpoint lb : col) {- if (trace == null) {- lb.deleteForProgram();+ for (TraceBreakpoint tb : col) {+ TraceRecorder recorder = modelService.getRecorder(tb.getTrace());+ if (recorder == null) {+ continue;}- if (!(lb instanceof LogicalBreakpointInternal)) {+ List<String> path = PathUtils.parse(tb.getPath());+ TargetObject object = recorder.getTarget().getModel().getModelObject(path);+ if (!(object instanceof TargetBreakpointLocation)) {+ Msg.error(this, tb.getPath() + " is not a target breakpoint location");continue;}- LogicalBreakpointInternal lbi = (LogicalBreakpointInternal) lb;- lbi.planDelete(actions, trace);+ TargetBreakpointLocation loc = (TargetBreakpointLocation) object;+ consumer.accept(actions, loc);}return actions.execute();}+ @Override+ public CompletableFuture<Void> enableLocs(Collection<TraceBreakpoint> col) {+ return actOnLocs(col, BreakpointActionSet::planEnable);+ }++ @Override+ public CompletableFuture<Void> disableLocs(Collection<TraceBreakpoint> col) {+ return actOnLocs(col, BreakpointActionSet::planDisable);+ }++ @Override+ public CompletableFuture<Void> deleteLocs(Collection<TraceBreakpoint> col) {+ return actOnLocs(col, BreakpointActionSet::planDelete);+ }+@Overridepublic void processEvent(PluginEvent event) {if (event instanceof ProgramOpenedPluginEvent) {diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DeleteBreakpointActionItem.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DeleteBreakpointActionItem.javaindex 1d37920345..c725b4dd61 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DeleteBreakpointActionItem.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DeleteBreakpointActionItem.java@@ -18,14 +18,13 @@ package ghidra.app.plugin.core.debug.service.breakpoint;import java.util.Objects;import java.util.concurrent.CompletableFuture;-import ghidra.dbg.target.TargetBreakpointSpec;import ghidra.dbg.target.TargetDeletable;public class DeleteBreakpointActionItem implements BreakpointActionItem {- private final TargetBreakpointSpec spec;+ private final TargetDeletable deletable;- public DeleteBreakpointActionItem(TargetBreakpointSpec spec) {- this.spec = spec;+ public DeleteBreakpointActionItem(TargetDeletable deletable) {+ this.deletable = deletable;}@Override@@ -34,7 +33,7 @@ public class DeleteBreakpointActionItem implements BreakpointActionItem {return false;}DeleteBreakpointActionItem that = (DeleteBreakpointActionItem) obj;- if (this.spec != that.spec) {+ if (this.deletable != that.deletable) {return false;}return true;@@ -42,16 +41,11 @@ public class DeleteBreakpointActionItem implements BreakpointActionItem {@Overridepublic int hashCode() {- return Objects.hash(getClass(), spec);+ return Objects.hash(getClass(), deletable);}@Overridepublic CompletableFuture<Void> execute() {- if (!(spec instanceof TargetDeletable)) {- return CompletableFuture- .failedFuture(new IllegalArgumentException("spec is not Deletable"));- }- TargetDeletable del = (TargetDeletable) spec;- return del.delete();+ return deletable.delete();}}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DisableBreakpointActionItem.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DisableBreakpointActionItem.javaindex 20d8155d34..1936302739 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DisableBreakpointActionItem.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/DisableBreakpointActionItem.java@@ -18,13 +18,13 @@ package ghidra.app.plugin.core.debug.service.breakpoint;import java.util.Objects;import java.util.concurrent.CompletableFuture;-import ghidra.dbg.target.TargetBreakpointSpec;+import ghidra.dbg.target.TargetTogglable;public class DisableBreakpointActionItem implements BreakpointActionItem {- private final TargetBreakpointSpec spec;+ private final TargetTogglable togglable;- public DisableBreakpointActionItem(TargetBreakpointSpec spec) {- this.spec = spec;+ public DisableBreakpointActionItem(TargetTogglable togglable) {+ this.togglable = togglable;}@Override@@ -33,7 +33,7 @@ public class DisableBreakpointActionItem implements BreakpointActionItem {return false;}DisableBreakpointActionItem that = (DisableBreakpointActionItem) obj;- if (this.spec != that.spec) {+ if (this.togglable != that.togglable) {return false;}return true;@@ -41,11 +41,11 @@ public class DisableBreakpointActionItem implements BreakpointActionItem {@Overridepublic int hashCode() {- return Objects.hash(getClass(), spec);+ return Objects.hash(getClass(), togglable);}@Overridepublic CompletableFuture<Void> execute() {- return spec.disable();+ return togglable.disable();}}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/EnableBreakpointActionItem.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/EnableBreakpointActionItem.javaindex 6f1ccb3007..c175235b6b 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/EnableBreakpointActionItem.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/EnableBreakpointActionItem.java@@ -18,13 +18,13 @@ package ghidra.app.plugin.core.debug.service.breakpoint;import java.util.Objects;import java.util.concurrent.CompletableFuture;-import ghidra.dbg.target.TargetBreakpointSpec;+import ghidra.dbg.target.TargetTogglable;public class EnableBreakpointActionItem implements BreakpointActionItem {- private final TargetBreakpointSpec spec;+ private final TargetTogglable togglable;- public EnableBreakpointActionItem(TargetBreakpointSpec spec) {- this.spec = spec;+ public EnableBreakpointActionItem(TargetTogglable togglable) {+ this.togglable = togglable;}@Override@@ -33,7 +33,7 @@ public class EnableBreakpointActionItem implements BreakpointActionItem {return false;}EnableBreakpointActionItem that = (EnableBreakpointActionItem) obj;- if (this.spec != that.spec) {+ if (this.togglable != that.togglable) {return false;}return true;@@ -41,11 +41,11 @@ public class EnableBreakpointActionItem implements BreakpointActionItem {@Overridepublic int hashCode() {- return Objects.hash(getClass(), spec);+ return Objects.hash(getClass(), togglable);}@Overridepublic CompletableFuture<Void> execute() {- return spec.enable();+ return togglable.enable();}}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/LogicalBreakpointInternal.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/LogicalBreakpointInternal.javaindex 1b371cb91b..6a2219d44a 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/LogicalBreakpointInternal.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/breakpoint/LogicalBreakpointInternal.java@@ -382,7 +382,7 @@ interface LogicalBreakpointInternal extends LogicalBreakpoint {if (loc == null) {continue;}- actions.add(new EnableBreakpointActionItem(loc.getSpecification()));+ actions.planEnable(loc);}}@@ -401,7 +401,7 @@ interface LogicalBreakpointInternal extends LogicalBreakpoint {if (!Objects.equals(spec.getKinds(), tKinds)) {continue;}- actions.add(new DisableBreakpointActionItem(spec));+ actions.planDisable(loc);}}@@ -420,10 +420,7 @@ interface LogicalBreakpointInternal extends LogicalBreakpoint {if (!Objects.equals(spec.getKinds(), tKinds)) {continue;}- if (!(spec instanceof TargetDeletable)) {- continue;- }- actions.add(new DeleteBreakpointActionItem(spec));+ actions.planDelete(loc);}}}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerLogicalBreakpointService.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerLogicalBreakpointService.javaindex c2e8619c14..a0a7f962df 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerLogicalBreakpointService.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerLogicalBreakpointService.java@@ -26,6 +26,7 @@ import ghidra.program.model.address.Address;import ghidra.program.model.listing.Program;import ghidra.program.util.ProgramLocation;import ghidra.trace.model.Trace;+import ghidra.trace.model.breakpoint.TraceBreakpoint;import ghidra.trace.model.breakpoint.TraceBreakpointKind;import ghidra.trace.model.program.TraceProgramView;@@ -181,6 +182,27 @@ public interface DebuggerLogicalBreakpointService {return computeEnablement(col, loc);}+ default boolean anyMapped(Collection<LogicalBreakpoint> col, Trace trace) {+ if (trace == null) {+ return anyMapped(col);+ }+ for (LogicalBreakpoint lb : col) {+ if (lb.getMappedTraces().contains(trace)) {+ return true;+ }+ }+ return false;+ }++ default boolean anyMapped(Collection<LogicalBreakpoint> col) {+ for (LogicalBreakpoint lb : col) {+ if (!lb.getMappedTraces().isEmpty()) {+ return true;+ }+ }+ return false;+ }+/*** Create an enabled breakpoint at the given program location and each mapped live trace* location.@@ -274,4 +296,28 @@ public interface DebuggerLogicalBreakpointService {* @return a future which completes when all associated specifications have been deleted*/CompletableFuture<Void> deleteAll(Collection<LogicalBreakpoint> col, Trace trace);++ /**+ * Presuming the given locations are live, enable them+ *+ * @param col the trace breakpoints+ * @return a future which completes when the command has been processed+ */+ CompletableFuture<Void> enableLocs(Collection<TraceBreakpoint> col);++ /**+ * Presuming the given locations are live, disable them+ *+ * @param col the trace breakpoints+ * @return a future which completes when the command has been processed+ */+ CompletableFuture<Void> disableLocs(Collection<TraceBreakpoint> col);++ /**+ * Presuming the given locations are live, delete them+ *+ * @param col the trace breakpoints+ * @return a future which completes when the command has been processed+ */+ CompletableFuture<Void> deleteLocs(Collection<TraceBreakpoint> col);}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/LogicalBreakpoint.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/LogicalBreakpoint.javaindex 13c9eae987..332fe8d5c1 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/LogicalBreakpoint.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/LogicalBreakpoint.java@@ -32,7 +32,13 @@ public interface LogicalBreakpoint {String BREAKPOINT_ENABLED_BOOKMARK_TYPE = "BreakpointEnabled";String BREAKPOINT_DISABLED_BOOKMARK_TYPE = "BreakpointDisabled";+ /**+ * The state of a logical breakpoint's program bookmark+ */public enum ProgramEnablement {+ /**+ * A placeholder state when the program bookmark state is not applicable+ */NONE {@Overridepublic Enablement combineTrace(TraceEnablement traceEn) {@@ -52,6 +58,13 @@ public interface LogicalBreakpoint {}}},+ /**+ * The state when the program location applies, but no breakpoint is present there+ *+ * <p>+ * This can happen when a breakpoint is placed directly in the debugger at a mapped address,+ * but that breakpoint is not (yet) bookmarked in the mapped program.+ */MISSING {@Overridepublic Enablement combineTrace(TraceEnablement traceEn) {@@ -70,6 +83,9 @@ public interface LogicalBreakpoint {}}},+ /**+ * The breakpoint's program bookmark is enabled+ */ENABLED {@Overridepublic Enablement combineTrace(TraceEnablement traceEn) {@@ -87,6 +103,9 @@ public interface LogicalBreakpoint {}}},+ /**+ * The breakpoint's program bookmark is disabled+ */DISABLED {@Overridepublic Enablement combineTrace(TraceEnablement traceEn) {@@ -105,10 +124,27 @@ public interface LogicalBreakpoint {}};+ /**+ * Compose the logical breakpoint state from the perspective of the program, given the+ * composed state of its locations+ *+ * <p>+ * This state is generally considered the state of the logical breakpoint. In other words,+ * the program's perspective is the default.+ *+ * @param traceEn the state of its locations+ * @return the logical state+ */public abstract Enablement combineTrace(TraceEnablement traceEn);}+ /**+ * The state of a logical breakpoint's trace/target locations+ */public enum TraceEnablement {+ /**+ * A placeholder state when the breakpoint is not mapped to any trace+ */NONE {@Overridepublic TraceEnablement combine(TraceEnablement that) {@@ -130,6 +166,10 @@ public interface LogicalBreakpoint {}}},+ /**+ * The state when the breakpoint is mapped to at least one trace, but no locations are+ * placed+ */MISSING {@Overridepublic TraceEnablement combine(TraceEnablement that) {@@ -151,6 +191,9 @@ public interface LogicalBreakpoint {}}},+ /**+ * The state when all mapped locations are placed and enabled+ */ENABLED {@Overridepublic TraceEnablement combine(TraceEnablement that) {@@ -181,6 +224,9 @@ public interface LogicalBreakpoint {}}},+ /**+ * The state when all mapped locations are placed and disabled+ */DISABLED {@Overridepublic TraceEnablement combine(TraceEnablement that) {@@ -211,6 +257,9 @@ public interface LogicalBreakpoint {}}},+ /**+ * The state when some mapped locations are enabled and some are disabled+ */MIXED {@Overridepublic TraceEnablement combine(TraceEnablement that) {@@ -223,52 +272,105 @@ public interface LogicalBreakpoint {}};+ /**+ * Convert a boolean to trace enablement+ *+ * @param en true for {@link #ENABLED}, false for {@link #DISABLED}+ * @return the state+ */public static TraceEnablement fromBool(boolean en) {return en ? ENABLED : DISABLED;}+ /**+ * For locations of the same logical breakpoint, compose the state+ *+ * @param that the other state+ * @return the composed state+ */public abstract TraceEnablement combine(TraceEnablement that);+ /**+ * Compose the logical breakpoint state from the perspective of the trace, given the state+ * of its program bookmark.+ *+ * <p>+ * Typically, this is used not on a composed trace state, but on the one trace whose+ * perspective to consider. This should only be used when choosing how to render a+ * breakpoint in that trace's listing.+ *+ * @param progEn the state of the program bookmark+ * @return the per-trace logical state+ */public abstract Enablement combineProgram(ProgramEnablement progEn);}+ /**+ * The state of a logical breakpoint, i.e., whether or not its parts are enabled+ */public enum Enablement {+ /**+ * A placeholder state, usually indicating the logical breakpoint should not exist+ *+ * <p>+ * This state should not ever be assigned to any actual breakpoint, except if that+ * breakpoint is ephemeral and about to be removed. This value may appear during+ * computations and is a suitable default placeholder for editors and renderers.+ */NONE(false, false, true, false) {@Overridepublic Enablement getPrimary() {return NONE;}},+ /**+ * The breakpoint's bookmark and all mapped locations are placed and enabled+ */ENABLED(true, false, true, true) {@Overridepublic Enablement getPrimary() {return ENABLED;}},+ /**+ * The breakpoint's bookmark and all mapped locations are placed and disabled+ */DISABLED(false, true, true, true) {@Overridepublic Enablement getPrimary() {return DISABLED;}},+ /**+ * The breakpoint's bookmark is enabled, but it has no mapped locations placed+ */INEFFECTIVE_ENABLED(true, false, true, false) {@Overridepublic Enablement getPrimary() {return ENABLED;}},+ /**+ * The breakpoint's bookmark is disabled, and it has no mapped locations placed+ */INEFFECTIVE_DISABLED(false, true, true, false) {@Overridepublic Enablement getPrimary() {return DISABLED;}},+ /**+ * The breakpoint's bookmark is enabled, but at least one mapped location is disabled+ */ENABLED_DISABLED(true, false, false, true) {@Overridepublic Enablement getPrimary() {return ENABLED;}},+ /**+ * The breakpoint's bookmark is disabled, but at least one mapped location is enabled+ */DISABLED_ENABLED(false, true, false, true) {@Overridepublic Enablement getPrimary() {@@ -288,6 +390,17 @@ public interface LogicalBreakpoint {this.effective = effective;}+ /**+ * For logical breakpoints which appear at the same address, compose their state+ *+ * <p>+ * This can happen when two logical breakpoints, having different attributes (size, kinds,+ * etc.) coincide at the same address. This should be used only when deciding how to mark or+ * choose actions for the address.+ *+ * @param that the other state.+ * @return the composed state+ */public Enablement sameAdddress(Enablement that) {if (this == NONE) {return that;@@ -301,6 +414,13 @@ public interface LogicalBreakpoint {return fromBools(this.enabled || that.enabled, this.enabled && that.enabled);}+ /**+ * For logical breakpoints which appear at the same address, compose their state+ *+ * @see #sameAdddress(Enablement)+ * @param col a collection of states derived from logical breakpoints at the same address+ * @return the composed state+ */public static Enablement sameAddress(Collection<Enablement> col) {Enablement result = NONE;for (Enablement e : col) {@@ -328,7 +448,43 @@ public interface LogicalBreakpoint {}}+ /**+ * Get the "primary" state represented by this logical state+ *+ * <p>+ * Generally, this is the state of the bookmark, i.e., program breakpoint. Not all logical+ * breakpoints have a placed bookmark, though. In that case, this still returns a reasonable+ * "primary" state.+ *+ * @return the state+ */public abstract Enablement getPrimary();++ /**+ * Get the desired state were the the logical breakpoint to be toggled+ *+ * <p>+ * The expected "action" when toggling a breakpoint may vary depending on whether or not the+ * breakpoint is mapped, and the notion of "mapped" may vary depending on other settings. In+ * general, if the breakpoint is not in a consistent, enabled, and effective state, but it+ * could be, then toggling it should attempt to make it so. If it is consistent, enabled,+ * and effective, then toggling it should make it consistent, disabled, and effective. If it+ * is not mapped, the state should toggle between enabled and disabled, but ineffective.+ *+ * <p>+ * This will always return one of {@link #ENABLED} or {@link #DISABLED}, indicating what+ * action should be taken on the logical breakpoint. A breakpoint that is ineffective,+ * because it is not mapped, will remain ineffective.+ *+ * @param mapped true if the breakpoint is mapped, as interpreted by the action context+ * @return the resulting state+ */+ public Enablement getToggled(boolean mapped) {+ // If not mapped, just toggle. If mapped, consider any other state "disabled"+ // This will cause most first toggles to make it consistent enabled-effective.+ boolean en = mapped ? this == ENABLED : enabled;+ return en ? DISABLED : ENABLED; // The actual toggle (and type conversion)+ }}/**@@ -358,6 +514,7 @@ public interface LogicalBreakpoint {/*** If the logical breakpoint is present in a program, get its bookmark.*+ * <p>* Note it is possible for a logical breakpoint to have a mapped program location, even though* that location is not bookmarked, i.e., the breakpoint may not be present in the program.*@@ -375,6 +532,7 @@ public interface LogicalBreakpoint {/*** Get the (requested) length of this breakpoint*+ * <p>* Each debugger may choose whether or not to heed this, and it may depend on the breakpoint* kinds. To know the actual length given by the debugger, inspect each contained breakpoint* individually.@@ -386,6 +544,7 @@ public interface LogicalBreakpoint {/*** Get all trace breakpoints which map to this logical breakpoint.*+ * <p>* Note that not all traces for which this logical breakpoint has an address will have a* corresponding trace breakpoint, i.e., the breakpoint may not be present in every mappable* trace.@@ -405,6 +564,7 @@ public interface LogicalBreakpoint {/*** Get the traces for which this logical breakpoint has an address.*+ * <p>* Note, this does not necessarily indicate that a {@link TraceBreakpoint} is present for each* trace, but rather that for each returned trace, the logical breakpoint can be mapped to an* address in that trace. See {@link #getParticipatingTraces()}.@@ -416,6 +576,7 @@ public interface LogicalBreakpoint {/*** Get the traces for which this logical breakpoint has a trace breakpoint.*+ * <p>* Note, unlike {@link #getMappedTraces()}, this does indicate that a {@link TraceBreakpoint} is* present for each trace.*@@ -486,10 +647,12 @@ public interface LogicalBreakpoint {/*** Enable (or create) this breakpoint in the given target.*+ * <p>* Presuming the breakpoint is mappable to the given trace, if no breakpoint of the same kind* exists at the mapped address, then this will create a new breakpoint. Note, depending on the* debugging model, the enabled or created breakpoint may apply to more than the given trace.*+ * <p>* This simply issues the command. The logical breakpoint is updated only when the resulting* events are processed.*@@ -501,10 +664,12 @@ public interface LogicalBreakpoint {/*** Disable this breakpoint in the given target.*+ * <p>* Note this will not create any new breakpoints. It will disable all breakpoints of the same* kind at the mapped address. Note, depending on the debugging model, the disabled breakpoint* may apply to more than the given trace.*+ * <p>* This simply issues the command. The logical breakpoint is updated only when the resulting* events are processed.*@@ -516,6 +681,7 @@ public interface LogicalBreakpoint {/*** Delete this breakpoint in the given target.*+ * <p>* This presumes the breakpoint's specifications are deletable. Note that if the logical* breakpoint is still mappable into this trace, a marker may be displayed, even though no* breakpoint is actually present. Note, depending on the debugging model, the deleted@@ -532,9 +698,11 @@ public interface LogicalBreakpoint {/*** Enable (or create) this breakpoint everywhere in the tool.*+ * <p>* This affects the mapped program, if applicable, and all open and live traces. Note, depending* on the debugging model, the enabled or created breakpoints may apply to more targets.*+ * <p>* This simply issues the command. The logical breakpoint is updated only when the resulting* events are processed.*@@ -545,9 +713,11 @@ public interface LogicalBreakpoint {/*** Disable this breakpoint everywhere in the tool.*+ * <p>* This affects the mapped program, if applicable, and all open and live traces. Note, depending* on the debugging model, the disabled breakpoints may apply to more targets.*+ * <p>* This simply issues the command. The logical breakpoint is updated only when the resulting* events are processed.*@@ -558,10 +728,12 @@ public interface LogicalBreakpoint {/*** Delete this breakpoint everywhere in the tool.*+ * <p>* This presumes the breakpoint's specifications are deletable. This affects the mapped program,* if applicable, and all open and live traces. Note, depending on the debugging model, the* deleted breakpoints may be removed from more targets.*+ * <p>* This simply issues the command. The logical breakpoint is updated only when the resulting* events are processed.*