1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +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
Use the new "getValue" method of "IAddress" for address comparison.
* Disassembly.java

View file

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