mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 15:35:24 +02:00
Only take a byte.
This commit is contained in:
parent
220d22f82b
commit
50d7ae7e64
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
|
||||||
MISession mi = getCTarget().getCSession().getMISession();
|
MISession mi = getCTarget().getCSession().getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
for (int i = 0; i < bytes.length; i++) {
|
for (int i = 0; i < bytes.length; i++) {
|
||||||
long l = new Byte(bytes[i]).longValue();
|
long l = new Byte(bytes[i]).longValue() & 0xff;
|
||||||
String value = "0x" + Long.toHexString(l);
|
String value = "0x" + Long.toHexString(l);
|
||||||
MIDataWriteMemory mw = factory.createMIDataWriteMemory(offset + i,
|
MIDataWriteMemory mw = factory.createMIDataWriteMemory(offset + i,
|
||||||
expression, MIFormat.HEXADECIMAL, 1, value);
|
expression, MIFormat.HEXADECIMAL, 1, value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue