1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-22 07:43:56 +02:00

In the 'reset' method of 'CVariable' check if value is an instance of 'CValue' before type casting.

This commit is contained in:
Mikhail Khodjaiants 2004-02-11 20:45:44 +00:00
parent 027d6dd752
commit 76234c1815
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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)