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:
parent
4edaf1587b
commit
b908d7bb21
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue