Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2007-11-30 22:38:45 +0000
committerJohn Cortell2007-11-30 22:38:45 +0000
commit97c41a004df74822f700bbe8bec67c322cefa06a (patch)
tree593ff123d756534d4d9e09d96fd7794f95d482fc /debug/org.eclipse.cdt.debug.core
parentfaf69d0940f46cd6a7a145bef1e11765bdded574 (diff)
downloadorg.eclipse.cdt-97c41a004df74822f700bbe8bec67c322cefa06a.tar.gz
org.eclipse.cdt-97c41a004df74822f700bbe8bec67c322cefa06a.tar.xz
org.eclipse.cdt-97c41a004df74822f700bbe8bec67c322cefa06a.zip
getBytesFromAddress() would return null ifgetAddressableSize() was called first
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java2
1 files changed, 1 insertions, 1 deletions
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 40e0402fe66..bf57660c59e 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
@@ -189,7 +189,7 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
*/
public MemoryByte[] getBytesFromAddress( BigInteger address, long length ) throws DebugException {
ICDIMemoryBlock cdiBlock = getCDIBlock();
- if ( cdiBlock == null ||
+ if ( fBytes == null || cdiBlock == null ||
cdiBlock.getStartAddress().compareTo( address ) > 0 ||
cdiBlock.getStartAddress().add( BigInteger.valueOf( cdiBlock.getLength()/cdiBlock.getWordSize() ) ).compareTo( address.add( BigInteger.valueOf( length ) ) ) < 0 ) {
synchronized( this ) {

Back to the top