Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlain Magloire2006-12-30 02:18:52 +0000
committerAlain Magloire2006-12-30 02:18:52 +0000
commitce2fc57e4bd3cd89e96a11364f353780f7fa80b4 (patch)
tree4fbcc7dd2df705c354f533913f67d4779b464007 /debug
parent00ab3049d98f63e11be8f922efe60adc6e97996e (diff)
downloadorg.eclipse.cdt-ce2fc57e4bd3cd89e96a11364f353780f7fa80b4.tar.gz
org.eclipse.cdt-ce2fc57e4bd3cd89e96a11364f353780f7fa80b4.tar.xz
org.eclipse.cdt-ce2fc57e4bd3cd89e96a11364f353780f7fa80b4.zip
Fix bug in parsing reference value PR 169259
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/IntegralValue.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/IntegralValue.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/IntegralValue.java
index 19ea5bdfc7d..b3d662438e5 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/IntegralValue.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/IntegralValue.java
@@ -45,18 +45,18 @@ public abstract class IntegralValue extends Value implements ICDIIntegralValue {
valueString = valueString.substring(1);
int colon = valueString.indexOf(':');
if (colon != -1) {
- valueString = valueString.substring(colon + 1);
+ valueString = valueString.substring(colon + 1).trim();
}
- } else {
- int space = valueString.indexOf(' ');
- if (space != -1) {
- valueString = valueString.substring(0, space).trim();
- }
}
+ int space = valueString.indexOf(' ');
+ if (space != -1) {
+ valueString = valueString.substring(0, space).trim();
+ }
try {
return MIFormat.getBigInteger(valueString);
} catch (NumberFormatException e) {
+ //
}
return BigInteger.ZERO;
}

Back to the top