mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
getBytesFromAddress() would return null ifgetAddressableSize() was called first
This commit is contained in:
parent
faf69d0940
commit
97c41a004d
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
*/
|
*/
|
||||||
public MemoryByte[] getBytesFromAddress( BigInteger address, long length ) throws DebugException {
|
public MemoryByte[] getBytesFromAddress( BigInteger address, long length ) throws DebugException {
|
||||||
ICDIMemoryBlock cdiBlock = getCDIBlock();
|
ICDIMemoryBlock cdiBlock = getCDIBlock();
|
||||||
if ( cdiBlock == null ||
|
if ( fBytes == null || cdiBlock == null ||
|
||||||
cdiBlock.getStartAddress().compareTo( address ) > 0 ||
|
cdiBlock.getStartAddress().compareTo( address ) > 0 ||
|
||||||
cdiBlock.getStartAddress().add( BigInteger.valueOf( cdiBlock.getLength()/cdiBlock.getWordSize() ) ).compareTo( address.add( BigInteger.valueOf( length ) ) ) < 0 ) {
|
cdiBlock.getStartAddress().add( BigInteger.valueOf( cdiBlock.getLength()/cdiBlock.getWordSize() ) ).compareTo( address.add( BigInteger.valueOf( length ) ) ) < 0 ) {
|
||||||
synchronized( this ) {
|
synchronized( this ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue