Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAlvaro Sanchez-Leon2016-02-22 13:24:33 -0500
committerGerrit Code Review @ Eclipse.org2016-03-23 21:17:51 -0400
commit82b74d3cb69055a4f2a25e827e31da35ae19e650 (patch)
tree0b697a68177b87d062825f9a4aa0538485403e6b /dsf
parent7a73b0035f03d018ce7aa90f10a143bdb3ad38b8 (diff)
downloadorg.eclipse.cdt-82b74d3cb69055a4f2a25e827e31da35ae19e650.tar.gz
org.eclipse.cdt-82b74d3cb69055a4f2a25e827e31da35ae19e650.tar.xz
org.eclipse.cdt-82b74d3cb69055a4f2a25e827e31da35ae19e650.zip
Bug 489398 - Support memory spaces in IExpressionDMAdress
When an address is resolved from an expression, the resulting address may carry a memory space provided by the backend to associate this address to a particular memory space. The current interface for the memory space service (e.g. IMemorySpaces2) can be used to parse the memory space contained in the expression. This update adds: 1) A new API method to resolve the memory space of an IExpressionDMAddress instance 2) The use of the memory space service to attempt to resolve the memory space. Note: if there is no memory space service, the memory space defaults to an empty string, which does not affect the default behaviour i.e. when memory spaces are not used. Change-Id: Idfe5669b26f84ee4e3e78f96f229ced75e6ec5c3
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf/.settings/.api_filters11
-rw-r--r--dsf/org.eclipse.cdt.dsf/META-INF/MANIFEST.MF2
-rw-r--r--dsf/org.eclipse.cdt.dsf/pom.xml2
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IExpressions.java8
4 files changed, 21 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/.settings/.api_filters b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters
new file mode 100644
index 0000000000..346ffc9148
--- /dev/null
+++ b/dsf/org.eclipse.cdt.dsf/.settings/.api_filters
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<component id="org.eclipse.cdt.dsf" version="2">
+ <resource path="src/org/eclipse/cdt/dsf/debug/service/IExpressions.java" type="org.eclipse.cdt.dsf.debug.service.IExpressions$IExpressionDMAddress">
+ <filter id="403804204">
+ <message_arguments>
+ <message_argument value="org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMAddress"/>
+ <message_argument value="getMemorySpaceID()"/>
+ </message_arguments>
+ </filter>
+ </resource>
+</component>
diff --git a/dsf/org.eclipse.cdt.dsf/META-INF/MANIFEST.MF b/dsf/org.eclipse.cdt.dsf/META-INF/MANIFEST.MF
index 209784be28..9b98557f9b 100644
--- a/dsf/org.eclipse.cdt.dsf/META-INF/MANIFEST.MF
+++ b/dsf/org.eclipse.cdt.dsf/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.cdt.dsf;singleton:=true
-Bundle-Version: 2.6.0.qualifier
+Bundle-Version: 2.7.0.qualifier
Bundle-Activator: org.eclipse.cdt.dsf.internal.DsfPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,
diff --git a/dsf/org.eclipse.cdt.dsf/pom.xml b/dsf/org.eclipse.cdt.dsf/pom.xml
index c0d531f35b..296ade4083 100644
--- a/dsf/org.eclipse.cdt.dsf/pom.xml
+++ b/dsf/org.eclipse.cdt.dsf/pom.xml
@@ -11,7 +11,7 @@
<relativePath>../../pom.xml</relativePath>
</parent>
- <version>2.6.0-SNAPSHOT</version>
+ <version>2.7.0-SNAPSHOT</version>
<artifactId>org.eclipse.cdt.dsf</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IExpressions.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IExpressions.java
index 4f146995e6..cbe316d3a6 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IExpressions.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IExpressions.java
@@ -98,6 +98,14 @@ public interface IExpressions extends IFormattedValues {
* Returns the size of the address.
*/
int getSize();
+
+ /**
+ * @return The memory space
+ * @since 2.7
+ */
+ default String getMemorySpaceID() {
+ return "";
+ }
}
/**

Back to the top