1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fixed bug 165042: CMemoryBlockRetrievalExtension.getMemoryBlock constructs a malformed hex expression

This commit is contained in:
John Cortell 2006-11-17 21:11:37 +00:00
parent 7395254810
commit df6b9c604b

View file

@ -198,7 +198,7 @@ public class CMemoryBlockRetrievalExtension extends PlatformObject implements IM
public IMemoryBlock getMemoryBlock( long startAddress, long length ) throws DebugException { public IMemoryBlock getMemoryBlock( long startAddress, long length ) throws DebugException {
String expression = Long.toHexString(startAddress); String expression = Long.toHexString(startAddress);
BigInteger address = new BigInteger(expression, 16); BigInteger address = new BigInteger(expression, 16);
expression += "0x"; //$NON-NLS-1$ expression = "0x" + expression; //$NON-NLS-1$
return new CMemoryBlockExtension( getDebugTarget(), expression, address ); return new CMemoryBlockExtension( getDebugTarget(), expression, address );
} }