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:
parent
6818565686
commit
39f646118e
2 changed files with 10 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue