mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +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
|
2005-04-07 Mikhail Khodjaiants
|
||||||
Bug 89755: CThread.suspend suspends target, not thread.
|
Bug 89755: CThread.suspend suspends target, not thread.
|
||||||
* CThread.java
|
* CThread.java
|
||||||
|
|
|
@ -119,6 +119,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
public void setBaseAddress( BigInteger address ) throws DebugException {
|
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 {
|
public MemoryByte[] getBytesFromOffset( BigInteger unitOffset, long addressableUnits ) throws DebugException {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
|
@ -154,16 +157,18 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
for ( int i = 0; i < bytes.length; ++i ) {
|
for ( int i = 0; i < bytes.length; ++i ) {
|
||||||
byte cdiFlags = getCDIBlock().getFlags( i );
|
byte cdiFlags = getCDIBlock().getFlags( i );
|
||||||
byte flags = 0;
|
byte flags = 0;
|
||||||
|
if ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) {
|
||||||
|
flags |= MemoryByte.HISTORY_KNOWN;
|
||||||
if ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) {
|
if ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) {
|
||||||
flags |= MemoryByte.READABLE;
|
flags |= MemoryByte.READABLE;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
flags |= MemoryByte.READABLE | MemoryByte.WRITABLE;
|
flags |= MemoryByte.READABLE | MemoryByte.WRITABLE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ( isBigEndian() ) {
|
if ( isBigEndian() ) {
|
||||||
flags |= MemoryByte.ENDIANESS_KNOWN | MemoryByte.BIG_ENDIAN;
|
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 ) ) ) )
|
if ( hasChanged( getRealBlockAddress().add( BigInteger.valueOf( i ) ) ) )
|
||||||
flags |= MemoryByte.CHANGED;
|
flags |= MemoryByte.CHANGED;
|
||||||
fBytes[i] = new MemoryByte( bytes[i], flags );
|
fBytes[i] = new MemoryByte( bytes[i], flags );
|
||||||
|
@ -256,6 +261,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
setValue( BigInteger.valueOf( offset ), bytes );
|
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 {
|
public void setValue( BigInteger offset, byte[] bytes ) throws DebugException {
|
||||||
ICDIMemoryBlock block = getCDIBlock();
|
ICDIMemoryBlock block = getCDIBlock();
|
||||||
if ( block != null ) {
|
if ( block != null ) {
|
||||||
|
@ -385,6 +393,9 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getConnections()
|
||||||
|
*/
|
||||||
public Object[] getConnections() {
|
public Object[] getConnections() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return new Object[0];
|
return new Object[0];
|
||||||
|
@ -417,14 +428,23 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
return super.getAdapter( adapter );
|
return super.getAdapter( adapter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.debug.core.model.IMemoryBlockExtension#getMemoryBlockStartAddress()
|
||||||
|
*/
|
||||||
public BigInteger getMemoryBlockStartAddress() throws DebugException {
|
public BigInteger getMemoryBlockStartAddress() throws DebugException {
|
||||||
return null; // return null to mean 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#getMemoryBlockEndAddress()
|
||||||
|
*/
|
||||||
public BigInteger getMemoryBlockEndAddress() throws DebugException {
|
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 {
|
public BigInteger getBigLength() throws DebugException {
|
||||||
ICDIMemoryBlock block = getCDIBlock();
|
ICDIMemoryBlock block = getCDIBlock();
|
||||||
if ( block != null ) {
|
if ( block != null ) {
|
||||||
|
@ -433,5 +453,4 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
}
|
}
|
||||||
return BigInteger.ZERO;
|
return BigInteger.ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue