mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
The reason of the 'suspended' event has been changed from ICDIBreakpoint to ICDIBreakpointHit.
This commit is contained in:
parent
fa789eea01
commit
d32b5a8355
2 changed files with 11 additions and 3 deletions
|
@ -21,6 +21,7 @@ import org.eclipse.cdt.debug.core.IFormattedMemoryRetrieval;
|
|||
import org.eclipse.cdt.debug.core.IRestart;
|
||||
import org.eclipse.cdt.debug.core.IState;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDICondition;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
|
||||
|
@ -1151,9 +1152,9 @@ public class CDebugTarget extends CDebugElement
|
|||
{
|
||||
handleEndSteppingRange( (ICDIEndSteppingRange)reason );
|
||||
}
|
||||
else if ( reason instanceof ICDIBreakpoint )
|
||||
else if ( reason instanceof ICDIBreakpointHit )
|
||||
{
|
||||
handleBreakpointHit( (ICDIBreakpoint)reason );
|
||||
handleBreakpointHit( (ICDIBreakpointHit)reason );
|
||||
}
|
||||
else if ( reason instanceof ICDISignal )
|
||||
{
|
||||
|
@ -1193,7 +1194,7 @@ public class CDebugTarget extends CDebugElement
|
|||
fireSuspendEvent( DebugEvent.UNSPECIFIED );
|
||||
}
|
||||
|
||||
private void handleBreakpointHit( ICDIBreakpoint breakpoint )
|
||||
private void handleBreakpointHit( ICDIBreakpointHit breakpointHit )
|
||||
{
|
||||
fireSuspendEvent( DebugEvent.BREAKPOINT );
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import org.eclipse.cdt.debug.core.ICFunctionBreakpoint;
|
|||
import org.eclipse.cdt.debug.core.ICLineBreakpoint;
|
||||
import org.eclipse.cdt.debug.core.IStackFrameInfo;
|
||||
import org.eclipse.cdt.debug.core.IState;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISignal;
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
|
@ -292,6 +293,12 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
new String[] { ((ICDISignal)info).getName(), ((ICDISignal)info).getMeaning() } );
|
||||
return label;
|
||||
}
|
||||
/*
|
||||
if ( info != null && info instanceof ICDIBreakpointHit )
|
||||
{
|
||||
return target.getName() + " (Breakpoint hit)";
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue