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,7 +152,9 @@ 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 ) {
synchronized( this ) {
if ( fType == null ) {
try { try {
fType = new CType( varObject.getType() ); fType = new CType( varObject.getType() );
} }
@ -160,6 +162,9 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
requestFailed( e.getMessage(), null ); requestFailed( e.getMessage(), null );
} }
} }
}
}
}
return fType; return fType;
} }