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

Verify if breakpoint belongs to the project before setting, removing or changing properties.

This commit is contained in:
Mikhail Khodjaiants 2003-05-27 19:00:30 +00:00
parent 6818565686
commit 39f646118e
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2003-05-27 Mikhail Khodjaiants
Check if the location of breakpoint is eligible for the target
when setting, removing or changing the propeties.
* CDebugTarget.java
2003-03-23 Alain Magloire
* src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIVariable.java:

View file

@ -690,10 +690,8 @@ public class CDebugTarget extends CDebugElement
*/
public void breakpointAdded( IBreakpoint breakpoint )
{
if ( !isAvailable() )
{
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
return;
}
if ( getConfiguration().supportsBreakpoints() )
{
try
@ -718,7 +716,6 @@ public class CDebugTarget extends CDebugElement
}
catch( DebugException e )
{
// CDebugCorePlugin.log( e );
}
}
}
@ -728,6 +725,8 @@ public class CDebugTarget extends CDebugElement
*/
public void breakpointRemoved( IBreakpoint breakpoint, IMarkerDelta delta )
{
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
return;
try
{
if ( breakpoint instanceof CBreakpoint )
@ -735,7 +734,6 @@ public class CDebugTarget extends CDebugElement
}
catch( DebugException e )
{
CDebugCorePlugin.log( e );
}
}
@ -744,6 +742,8 @@ public class CDebugTarget extends CDebugElement
*/
public void breakpointChanged( IBreakpoint breakpoint, IMarkerDelta delta )
{
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
return;
try
{
if ( breakpoint instanceof CBreakpoint )
@ -751,7 +751,6 @@ public class CDebugTarget extends CDebugElement
}
catch( DebugException e )
{
CDebugCorePlugin.log( e );
}
}