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:
parent
026cb9a8f6
commit
2990ce74f9
2 changed files with 19 additions and 0 deletions
|
@ -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
|
2003-02-05 David Inglis
|
||||||
|
|
||||||
Refactor Constants to debug.core
|
Refactor Constants to debug.core
|
||||||
|
|
|
@ -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 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] );
|
breakpointAdded( (ICBreakpoint)bps[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -352,6 +363,10 @@ public class CDebugTarget extends CDebugElement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void disableAddressBreakpoints()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
private boolean isTargetBreakpoint( IBreakpoint bp )
|
private boolean isTargetBreakpoint( IBreakpoint bp )
|
||||||
{
|
{
|
||||||
IProject project = bp.getMarker().getResource().getProject();
|
IProject project = bp.getMarker().getResource().getProject();
|
||||||
|
|
Loading…
Add table
Reference in a new issue