1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Disable the address breakpoints to prevent the debugger to insert them prematurely

This commit is contained in:
Mikhail Khodjaiants 2003-02-10 19:29:43 +00:00
parent 026cb9a8f6
commit 2990ce74f9
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-02-10 Mikhail Khodjaiants
Disable the address breakpoints to prevent the debugger to insert them prematurely.
* CDebugTarget.java
2003-02-05 David Inglis
Refactor Constants to debug.core

View file

@ -345,6 +345,17 @@ public class CDebugTarget extends CDebugElement
{
if ( bps[i] instanceof ICBreakpoint && isTargetBreakpoint( bps[i] ) && findCDIBreakpoint( bps[i] ) == null )
{
if ( bps[i] instanceof ICAddressBreakpoint )
{
// disable address breakpoints to prevent the debugger to insert them prematurely
try
{
bps[i].setEnabled( false );
}
catch( CoreException e )
{
}
}
breakpointAdded( (ICBreakpoint)bps[i] );
}
}
@ -352,6 +363,10 @@ public class CDebugTarget extends CDebugElement
}
}
private void disableAddressBreakpoints()
{
}
private boolean isTargetBreakpoint( IBreakpoint bp )
{
IProject project = bp.getMarker().getResource().getProject();