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:
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
|
2004-02-10 Mikhail Khodjaiants
|
||||||
Cache the endianness flag.
|
Cache the endianness flag.
|
||||||
* CDebugTarget.java
|
* CDebugTarget.java
|
||||||
|
|
|
@ -730,8 +730,12 @@ public abstract class CVariable extends CDebugElement
|
||||||
|
|
||||||
protected void reset() throws DebugException
|
protected void reset() throws DebugException
|
||||||
{
|
{
|
||||||
((CValue)getValue()).reset();
|
IValue value = getValue();
|
||||||
fireChangeEvent( DebugEvent.STATE );
|
if ( value instanceof CValue )
|
||||||
|
{
|
||||||
|
((CValue)getValue()).reset();
|
||||||
|
fireChangeEvent( DebugEvent.STATE );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue