diff options
author | Alain Magloire | 2008-03-28 15:27:31 +0000 |
---|---|---|
committer | Alain Magloire | 2008-03-28 15:27:31 +0000 |
commit | 02f51cf12a49c4b4052af11e1fc05347af7a6b39 (patch) | |
tree | 042c032fc33e2ce52b4e1a9f59e9f2dfddd76bae /debug/org.eclipse.cdt.debug.mi.core | |
parent | b8079d556d19e625478e89bc4a7338d452bea155 (diff) | |
download | org.eclipse.cdt-02f51cf12a49c4b4052af11e1fc05347af7a6b39.tar.gz org.eclipse.cdt-02f51cf12a49c4b4052af11e1fc05347af7a6b39.tar.xz org.eclipse.cdt-02f51cf12a49c4b4052af11e1fc05347af7a6b39.zip |
* org.eclipse.cdt.debug.internal.core.model/CValue.java
* org.eclipse.cdt.debug.mi.core.cdi/SourceManager.java
221944 nor P3 Wind cdt-debug-inbox@eclipse.org NEW Cannot display long long int as hex
Patch from Elena
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.core')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/SourceManager.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/SourceManager.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/SourceManager.java index 4442a472209..d61fbd04dab 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/SourceManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/SourceManager.java @@ -388,12 +388,15 @@ public class SourceManager extends Manager { boolean isImaginery = (first.equals("_Imaginary") || second.equals("_Imaginary") || third.equals("_Imaginary")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if (isSigned == false && unSigned==false) { + isSigned = true; // otherwise long long int would not work + } if (isShort && isInt && (isSigned || unSigned)) { return new ShortType(target, typename, unSigned); - } else if (isLong && isInt && (isSigned || unSigned)) { - return new LongType(target, typename, unSigned); } else if (isLongLong && (isSigned || unSigned)) { return new LongLongType(target, typename, unSigned); + } else if (isLong && isInt && (isSigned || unSigned)) { + return new LongType(target, typename, unSigned); } else if (isDouble && isLong && (isComplex || isImaginery)) { return new DoubleType(target, typename, isComplex, isImaginery, isLong); } |