mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 23:33:57 +02:00
In the 'reset' method of 'CVariable' check if value is an instance of 'CValue' before type casting.
This commit is contained in:
parent
027d6dd752
commit
76234c1815
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-02-11 Mikhail Khodjaiants
|
||||
In the 'reset' method check if value is an instance of CValue before type casting.
|
||||
* CVariable.java
|
||||
|
||||
2004-02-10 Mikhail Khodjaiants
|
||||
Cache the endianness flag.
|
||||
* CDebugTarget.java
|
||||
|
|
|
@ -730,8 +730,12 @@ public abstract class CVariable extends CDebugElement
|
|||
|
||||
protected void reset() throws DebugException
|
||||
{
|
||||
((CValue)getValue()).reset();
|
||||
fireChangeEvent( DebugEvent.STATE );
|
||||
IValue value = getValue();
|
||||
if ( value instanceof CValue )
|
||||
{
|
||||
((CValue)getValue()).reset();
|
||||
fireChangeEvent( DebugEvent.STATE );
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue