1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Synchronize the "getType" method of "CVariable.InternalVariable".

This commit is contained in:
Mikhail Khodjaiants 2004-09-28 15:44:35 +00:00
parent ad54f46853
commit 0722f6fc65
2 changed files with 15 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2004-09-28 Mikhail Khodjaiants
Synchronize the "getType" method of "CVariable.InternalVariable".
* CVariable.java
2004-09-27 Mikhail Khodjaiants 2004-09-27 Mikhail Khodjaiants
Use the new "getValue" method of "IAddress" for address comparison. Use the new "getValue" method of "IAddress" for address comparison.
* Disassembly.java * Disassembly.java

View file

@ -152,13 +152,18 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
CType getType() throws DebugException { CType getType() throws DebugException {
if ( fType == null ) { if ( fType == null ) {
ICDIVariableObject varObject = getCDIVariableObject(); ICDIVariableObject varObject = getCDIVariableObject();
if ( varObject != null ) if ( varObject != null ) {
try { synchronized( this ) {
fType = new CType( varObject.getType() ); if ( fType == null ) {
} try {
catch( CDIException e ) { fType = new CType( varObject.getType() );
requestFailed( e.getMessage(), null ); }
catch( CDIException e ) {
requestFailed( e.getMessage(), null );
}
}
} }
}
} }
return fType; return fType;
} }