mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Correction in the parsing of reference value.
This commit is contained in:
parent
30fdf45570
commit
bf46520cf1
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-06-04 Mikhail Khodjaiants
|
||||
Correction in the parsing of reference value.
|
||||
* src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ReferenceValue.java
|
||||
|
||||
2003-06-04 Mikhail Khodjaiants
|
||||
Added some missing types and methods for the type parsing.
|
||||
* src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java
|
||||
|
|
|
@ -31,9 +31,9 @@ public class ReferenceValue extends Value implements ICDIReferenceValue {
|
|||
public long referenceValue() throws CDIException {
|
||||
long value = 0;
|
||||
String valueString = getValueString().trim();
|
||||
if ( valueString.startsWith( "@" ) )
|
||||
if ( valueString.startsWith("@") )
|
||||
valueString = valueString.substring( 1 );
|
||||
int space = valueString.indexOf(' ');
|
||||
int space = valueString.indexOf(":");
|
||||
if (space != -1) {
|
||||
valueString = valueString.substring(0, space).trim();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue