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
|
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
|
||||||
|
|
|
@ -43,8 +43,8 @@ public class CMemoryBlockRetrievalExtension implements IMemoryBlockRetrievalExte
|
||||||
/**
|
/**
|
||||||
* Constructor for CMemoryBlockRetrievalExtension.
|
* Constructor for CMemoryBlockRetrievalExtension.
|
||||||
*/
|
*/
|
||||||
public CMemoryBlockRetrievalExtension(CDebugTarget debugTarget) {
|
public CMemoryBlockRetrievalExtension( CDebugTarget debugTarget ) {
|
||||||
fDebugTarget = debugTarget;
|
fDebugTarget = debugTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected CDebugTarget getDebugTarget() {
|
protected CDebugTarget getDebugTarget() {
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
* Constructor for CMemoryBlockExtension.
|
* Constructor for CMemoryBlockExtension.
|
||||||
*/
|
*/
|
||||||
public CMemoryBlockExtension( CDebugTarget target, String expression, BigInteger baseAddress ) {
|
public CMemoryBlockExtension( CDebugTarget target, String expression, BigInteger baseAddress ) {
|
||||||
this(target, expression, baseAddress, 1);
|
this( target, expression, baseAddress, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -119,7 +119,10 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
public void setBaseAddress( BigInteger address ) throws DebugException {
|
public void setBaseAddress( BigInteger address ) throws DebugException {
|
||||||
}
|
}
|
||||||
|
|
||||||
public MemoryByte[] getBytesFromOffset(BigInteger unitOffset, long addressableUnits) 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
|
// 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.READ_ONLY) != 0 ) {
|
if ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) {
|
||||||
flags |= MemoryByte.READABLE;
|
flags |= MemoryByte.HISTORY_KNOWN;
|
||||||
} else {
|
if ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) {
|
||||||
flags |= MemoryByte.READABLE | MemoryByte.WRITABLE;
|
flags |= MemoryByte.READABLE;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
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 );
|
||||||
|
@ -253,10 +258,13 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
||||||
* @see org.eclipse.debug.core.model.IMemoryBlock#setValue(long, byte[])
|
* @see org.eclipse.debug.core.model.IMemoryBlock#setValue(long, byte[])
|
||||||
*/
|
*/
|
||||||
public void setValue( long offset, byte[] bytes ) throws DebugException {
|
public void setValue( long offset, byte[] bytes ) throws DebugException {
|
||||||
setValue(BigInteger.valueOf(offset), bytes);
|
setValue( BigInteger.valueOf( offset ), bytes );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(BigInteger offset, byte[] bytes) throws DebugException {
|
/* (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();
|
ICDIMemoryBlock block = getCDIBlock();
|
||||||
if ( block != null ) {
|
if ( block != null ) {
|
||||||
BigInteger base = getBigBaseAddress();
|
BigInteger base = getBigBaseAddress();
|
||||||
|
@ -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,21 +428,29 @@ 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 ) {
|
||||||
BigInteger length = new BigInteger(Long.toHexString(block.getLength()), 16);
|
BigInteger length = new BigInteger( Long.toHexString( block.getLength() ), 16 );
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
return BigInteger.ZERO;
|
return BigInteger.ZERO;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue