mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Bug 205017.
This commit is contained in:
parent
5bdad92ff7
commit
41ada3d495
1 changed files with 11 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
* Stefan Bylund (Enea, steby@enea.se) - patch for bug 155464
|
||||
* Ken Ryall (Nokia) - Support for breakpoint actions (bug 118308)
|
||||
* Ling Wang (Nokia) - Bug 176077
|
||||
* Denis Pilat (ST) - Bug 205017
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.core.model;
|
||||
|
||||
|
@ -743,6 +744,13 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
|||
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 ) {
|
||||
fireSuspendEvent( DebugEvent.CLIENT_REQUEST );
|
||||
}
|
||||
|
@ -944,6 +952,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
|||
else if ( reason instanceof ICDIBreakpointHit ) {
|
||||
handleBreakpointHit( (ICDIBreakpointHit)reason );
|
||||
}
|
||||
else if ( reason instanceof ICDIWatchpointTrigger ) {
|
||||
handleWatchpointHit( (ICDIWatchpointTrigger)reason );
|
||||
}
|
||||
else if ( reason instanceof ICDISignalReceived ) {
|
||||
handleSuspendedBySignal( (ICDISignalReceived)reason );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue