Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java9
2 files changed, 14 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 48ebff9e192..a6205b02e98 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,4 +1,9 @@
2004-12-21 Mikhail Khodjaiants
+ Fix for bug 73168: Use memory view provided by Eclipse platform in CDT.
+ The CMemoryBlockextension is used as an adapter to "IMemoryBlockRetrieval".
+ * CMemoryBlockExtension.java
+
+2004-12-21 Mikhail Khodjaiants
Switch to the new memory view interfaces (Eclipse 3.1).
* InternalDebugCoreMessages.properties
* CMemoryBlockExtensionRetrieval.java: new
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
index 07401bc218b..39e1417b108 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
@@ -443,4 +443,13 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
// TODO Auto-generated method stub
return 0;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
+ */
+ public Object getAdapter( Class adapter ) {
+ if ( IMemoryBlockRetrieval.class.equals( adapter ) )
+ return getMemoryBlockRetrieval();
+ return super.getAdapter( adapter );
+ }
}

Back to the top