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 2004-02-10 Mikhail Khodjaiants
Cache the endianness flag. Cache the endianness flag.
* CDebugTarget.java * CDebugTarget.java

View file

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

View file

@ -200,7 +200,7 @@ public abstract class CVariable extends CDebugElement
{ {
if ( getCDIVariableObject() instanceof ICDIArgumentObject ) if ( getCDIVariableObject() instanceof ICDIArgumentObject )
fCDIVariable = getCDISession().getVariableManager().createArgument( (ICDIArgumentObject)getCDIVariableObject() ); fCDIVariable = getCDISession().getVariableManager().createArgument( (ICDIArgumentObject)getCDIVariableObject() );
else if ( getCDIVariableObject() != null ) else if ( getCDIVariableObject() instanceof ICDIVariableObject )
fCDIVariable = getCDISession().getVariableManager().createVariable( getCDIVariableObject() ); fCDIVariable = getCDISession().getVariableManager().createVariable( getCDIVariableObject() );
} }
catch( CDIException e ) catch( CDIException e )
@ -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)