1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[249976] Do not add leading zeros to hex formats because other output does not do it. This is backend dependent and we will need a more generic solution eventually.

This commit is contained in:
Marc Khouzam 2008-10-09 20:06:00 +00:00
parent 4edaf1587b
commit b908d7bb21

View file

@ -371,10 +371,10 @@ public class VariableVMNode extends AbstractExpressionVMNode
IExpressionDMAddress expression = getData();
IAddress expAddress = expression.getAddress();
if (expAddress instanceof Addr64) {
update.setLabel( ((Addr64) expAddress).toHexAddressString(), labelIndex);
update.setLabel( "0x" + ((Addr64) expAddress).toString(16), labelIndex);
}
else if (expAddress instanceof Addr32) {
update.setLabel( ((Addr32) expAddress).toHexAddressString(), labelIndex);
update.setLabel( "0x" + ((Addr32) expAddress).toString(16), labelIndex);
}
else {
update.setLabel( "Unknown address format", labelIndex);