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:
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
|
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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue