Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf/.settings/.api_filters8
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java20
2 files changed, 28 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/.settings/.api_filters b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters
index 346ffc9148..b1c14666cf 100644
--- a/dsf/org.eclipse.cdt.dsf/.settings/.api_filters
+++ b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters
@@ -8,4 +8,12 @@
</message_arguments>
</filter>
</resource>
+ <resource path="src/org/eclipse/cdt/dsf/debug/service/IMemorySpaces.java" type="org.eclipse.cdt.dsf.debug.service.IMemorySpaces">
+ <filter id="403804204">
+ <message_arguments>
+ <message_argument value="org.eclipse.cdt.dsf.debug.service.IMemorySpaces"/>
+ <message_argument value="getDefaultMemorySpace(IDMContext, DataRequestMonitor&lt;String&gt;)"/>
+ </message_arguments>
+ </filter>
+ </resource>
</component>
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 78d9ca0764..9a9cd5c44e 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 <i>contain</i> one or more memory
+ * spaces. Contexts that may be <i>associated</i> 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<String> rm) {
+ rm.setData(""); //$NON-NLS-1$
+ rm.done();
+ }
}

Back to the top