1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Bug 205017.

This commit is contained in:
Ken Ryall 2007-11-21 23:29:20 +00:00
parent 5bdad92ff7
commit 41ada3d495

View file

@ -10,6 +10,7 @@
* Stefan Bylund (Enea, steby@enea.se) - patch for bug 155464 * Stefan Bylund (Enea, steby@enea.se) - patch for bug 155464
* Ken Ryall (Nokia) - Support for breakpoint actions (bug 118308) * Ken Ryall (Nokia) - Support for breakpoint actions (bug 118308)
* Ling Wang (Nokia) - Bug 176077 * Ling Wang (Nokia) - Bug 176077
* Denis Pilat (ST) - Bug 205017
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.internal.core.model; package org.eclipse.cdt.debug.internal.core.model;
@ -742,6 +743,13 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
CDebugCorePlugin.getDefault().getBreakpointActionManager().executeActions(platformBreakpoint, this); CDebugCorePlugin.getDefault().getBreakpointActionManager().executeActions(platformBreakpoint, this);
fireSuspendEvent( DebugEvent.BREAKPOINT ); fireSuspendEvent( DebugEvent.BREAKPOINT );
} }
private void handleWatchpointHit( ICDIWatchpointTrigger watchPointTrigger ) {
IBreakpoint platformBreakpoint = ((CDebugTarget)getDebugTarget()).getBreakpointManager().getBreakpoint(watchPointTrigger.getWatchpoint());
if (platformBreakpoint != null)
CDebugCorePlugin.getDefault().getBreakpointActionManager().executeActions(platformBreakpoint, this);
fireSuspendEvent( DebugEvent.BREAKPOINT );
}
private void handleSuspendedBySignal( ICDISignalReceived signal ) { private void handleSuspendedBySignal( ICDISignalReceived signal ) {
fireSuspendEvent( DebugEvent.CLIENT_REQUEST ); fireSuspendEvent( DebugEvent.CLIENT_REQUEST );
@ -944,6 +952,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
else if ( reason instanceof ICDIBreakpointHit ) { else if ( reason instanceof ICDIBreakpointHit ) {
handleBreakpointHit( (ICDIBreakpointHit)reason ); handleBreakpointHit( (ICDIBreakpointHit)reason );
} }
else if ( reason instanceof ICDIWatchpointTrigger ) {
handleWatchpointHit( (ICDIWatchpointTrigger)reason );
}
else if ( reason instanceof ICDISignalReceived ) { else if ( reason instanceof ICDISignalReceived ) {
handleSuspendedBySignal( (ICDISignalReceived)reason ); handleSuspendedBySignal( (ICDISignalReceived)reason );
} }