1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

[301536] Fix to print hex address instead of decimal with 0x

This commit is contained in:
Marc Khouzam 2010-02-02 15:06:44 +00:00
parent 480a3b86d7
commit 892fa357ab

View file

@ -288,7 +288,7 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
@Override
public String toString() {
return (fAddr == null ? "null" : "(0x" + fAddr.toString()) + ", " + fSize + ")"; //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
return (fAddr == null ? "null" : "(" + fAddr.toHexAddressString()) + ", " + fSize + ")"; //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
}
}
@ -635,7 +635,7 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
protected void handleSuccess() {
String tmpAddrStr = getData().getValue();
// Deal with adresses of contents of a char* which is in
// Deal with addresses of contents of a char* which is in
// the form of "0x12345678 \"This is a string\""
int split = tmpAddrStr.indexOf(' ');
if (split != -1) tmpAddrStr = tmpAddrStr.substring(0, split);