diff --git a/dsf/org.eclipse.cdt.dsf/.settings/.api_filters b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters index 346ffc91488..b1c14666cf1 100644 --- a/dsf/org.eclipse.cdt.dsf/.settings/.api_filters +++ b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters @@ -8,4 +8,12 @@ + + + + + + + + diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java index 78d9ca0764c..9a9cd5c44e2 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java @@ -103,4 +103,24 @@ public interface IMemorySpaces extends IDsfService{ * select a memory space when being prompted for a memory location. */ public boolean creatingBlockRequiresMemorySpaceID(); + + /** + * Provides the default memory space to be used in the given context. + * + * @param ctx + * a context which might contain one or more memory + * spaces. Contexts that may be associated with a memory + * space should not be passed in. E.g., an expression might be + * associated with a memory space, but it does not contain memory + * spaces, and is thus not an appropriate context for this + * method. + * @param rm + * the asynchronous data request monitor. Returns a memory space ID. + * Never null, but may be empty. + * @since 2.7 + */ + default void getDefaultMemorySpace(IDMContext context, final DataRequestMonitor rm) { + rm.setData(""); //$NON-NLS-1$ + rm.done(); + } }