mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
Fix for bug 81698: NumberFormatException in CValue.
This commit is contained in:
parent
86e2679474
commit
4389ea8a9b
2 changed files with 42 additions and 30 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-12-20 Mikhail Khodjaiants
|
||||||
|
Fix for bug 81698: NumberFormatException in CValue.
|
||||||
|
* CValue.java
|
||||||
|
|
||||||
2004-12-16 Mikhail Khodjaiants
|
2004-12-16 Mikhail Khodjaiants
|
||||||
Fix for bug 81381: Deadlock when single stepping.
|
Fix for bug 81381: Deadlock when single stepping.
|
||||||
* CThread.java
|
* CThread.java
|
||||||
|
|
|
@ -271,6 +271,7 @@ public class CValue extends AbstractCValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getLongValueString( ICDILongValue value ) throws CDIException {
|
private String getLongValueString( ICDILongValue value ) throws CDIException {
|
||||||
|
try {
|
||||||
CVariableFormat format = getParentVariable().getFormat();
|
CVariableFormat format = getParentVariable().getFormat();
|
||||||
if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.DECIMAL.equals( format ) ) {
|
if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.DECIMAL.equals( format ) ) {
|
||||||
if ( isUnsigned() ) {
|
if ( isUnsigned() ) {
|
||||||
|
@ -289,10 +290,14 @@ public class CValue extends AbstractCValue {
|
||||||
sb.append( Long.toHexString( value.longValue() ) );
|
sb.append( Long.toHexString( value.longValue() ) );
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch( NumberFormatException e ) {
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getLongLongValueString( ICDILongLongValue value ) throws CDIException {
|
private String getLongLongValueString( ICDILongLongValue value ) throws CDIException {
|
||||||
|
try {
|
||||||
CVariableFormat format = getParentVariable().getFormat();
|
CVariableFormat format = getParentVariable().getFormat();
|
||||||
if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.DECIMAL.equals( format ) ) {
|
if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.DECIMAL.equals( format ) ) {
|
||||||
if ( isUnsigned() ) {
|
if ( isUnsigned() ) {
|
||||||
|
@ -311,6 +316,9 @@ public class CValue extends AbstractCValue {
|
||||||
sb.append( Long.toHexString( value.longValue() ) );
|
sb.append( Long.toHexString( value.longValue() ) );
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch( NumberFormatException e ) {
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue