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:
parent
ad54f46853
commit
0722f6fc65
2 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue