mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Move to Eclipse-31M6.
This commit is contained in:
parent
8ec23b43cc
commit
685d8d09e8
3 changed files with 41 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-04-07 Mikhail Khodjaiants
|
||||
Move to Eclipse-31M6.
|
||||
* CMemoryBlockRetrievalExtension.java
|
||||
* CMemoryBlockExtension.java
|
||||
|
||||
2005-04-07 Mikhail Khodjaiants
|
||||
Bug 89755: CThread.suspend suspends target, not thread.
|
||||
* CThread.java
|
||||
|
|
|
@ -119,6 +119,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
public void setBaseAddress( BigInteger address ) throws DebugException {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getBytesFromOffset(java.math.BigInteger, long)
|
||||
*/
|
||||
public MemoryByte[] getBytesFromOffset( BigInteger unitOffset, long addressableUnits ) throws DebugException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
|
@ -154,16 +157,18 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
for ( int i = 0; i < bytes.length; ++i ) {
|
||||
byte cdiFlags = getCDIBlock().getFlags( i );
|
||||
byte flags = 0;
|
||||
if ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) {
|
||||
flags |= MemoryByte.HISTORY_KNOWN;
|
||||
if ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) {
|
||||
flags |= MemoryByte.READABLE;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
flags |= MemoryByte.READABLE | MemoryByte.WRITABLE;
|
||||
}
|
||||
}
|
||||
if ( isBigEndian() ) {
|
||||
flags |= MemoryByte.ENDIANESS_KNOWN | MemoryByte.BIG_ENDIAN;
|
||||
}
|
||||
// flags |= ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) ? MemoryByte.VALID : MemoryByte.READONLY; // ????
|
||||
// flags |= ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) ? MemoryByte.READABLE : 0;
|
||||
if ( hasChanged( getRealBlockAddress().add( BigInteger.valueOf( i ) ) ) )
|
||||
flags |= MemoryByte.CHANGED;
|
||||
fBytes[i] = new MemoryByte( bytes[i], flags );
|
||||
|
@ -256,6 +261,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
setValue( BigInteger.valueOf( offset ), bytes );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#setValue(java.math.BigInteger, byte[])
|
||||
*/
|
||||
public void setValue( BigInteger offset, byte[] bytes ) throws DebugException {
|
||||
ICDIMemoryBlock block = getCDIBlock();
|
||||
if ( block != null ) {
|
||||
|
@ -385,6 +393,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getConnections()
|
||||
*/
|
||||
public Object[] getConnections() {
|
||||
// TODO Auto-generated method stub
|
||||
return new Object[0];
|
||||
|
@ -417,14 +428,23 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
return super.getAdapter( adapter );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getMemoryBlockStartAddress()
|
||||
*/
|
||||
public BigInteger getMemoryBlockStartAddress() throws DebugException {
|
||||
return null; // return null to mean not bounded ... according to the spec
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getMemoryBlockEndAddress()
|
||||
*/
|
||||
public BigInteger getMemoryBlockEndAddress() throws DebugException {
|
||||
return null;// return null to maen not bounded ... according to the spec
|
||||
return null;// return null to mean not bounded ... according to the spec
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getBigLength()
|
||||
*/
|
||||
public BigInteger getBigLength() throws DebugException {
|
||||
ICDIMemoryBlock block = getCDIBlock();
|
||||
if ( block != null ) {
|
||||
|
@ -433,5 +453,4 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
}
|
||||
return BigInteger.ZERO;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue