1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Merged changes from 1.2.1 branch.

This commit is contained in:
Mikhail Khodjaiants 2004-02-17 19:05:42 +00:00
parent 57d4d66372
commit 5c81a61e91
3 changed files with 23 additions and 3 deletions

View file

@ -1,3 +1,15 @@
2004-02-17 Mikhail Khodjaiants
Reset the current thread flag when resume.
* CThread.java
2004-02-16 Mikhail Khodjaiants
Fix for bug 52135: Debugger should indicate which thread triggered breakpoint.
* CThread.java
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

@ -943,6 +943,7 @@ public class CThread extends CDebugElement
}
else
{
setCurrent( false );
disposeStackFrames();
fireChangeEvent( DebugEvent.CONTENT );
}
@ -1129,6 +1130,8 @@ public class CThread extends CDebugElement
{
if ( adapter.equals( IRunToLine.class ) )
return this;
if ( adapter.equals( IState.class ) )
return this;
return super.getAdapter(adapter);
}
@ -1205,6 +1208,7 @@ public class CThread extends CDebugElement
}
else
{
setCurrent( false );
disposeStackFrames();
events.add( createChangeEvent( DebugEvent.CONTENT ) );
}

View file

@ -200,7 +200,7 @@ public abstract class CVariable extends CDebugElement
{
if ( getCDIVariableObject() instanceof ICDIArgumentObject )
fCDIVariable = getCDISession().getVariableManager().createArgument( (ICDIArgumentObject)getCDIVariableObject() );
else if ( getCDIVariableObject() != null )
else if ( getCDIVariableObject() instanceof ICDIVariableObject )
fCDIVariable = getCDISession().getVariableManager().createVariable( getCDIVariableObject() );
}
catch( CDIException e )
@ -729,10 +729,14 @@ public abstract class CVariable extends CDebugElement
}
protected void reset() throws DebugException
{
IValue value = getValue();
if ( value instanceof CValue )
{
((CValue)getValue()).reset();
fireChangeEvent( DebugEvent.STATE );
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.model.ICastToType#cast(java.lang.String)