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
|
2003-03-23 Alain Magloire
|
||||||
|
|
||||||
* src/org/eclipse/cdt/debug/core/cdi/model/type/ICDIVariable.java:
|
* 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 )
|
public void breakpointAdded( IBreakpoint breakpoint )
|
||||||
{
|
{
|
||||||
if ( !isAvailable() )
|
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
if ( getConfiguration().supportsBreakpoints() )
|
if ( getConfiguration().supportsBreakpoints() )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -718,7 +716,6 @@ public class CDebugTarget extends CDebugElement
|
||||||
}
|
}
|
||||||
catch( DebugException e )
|
catch( DebugException e )
|
||||||
{
|
{
|
||||||
// CDebugCorePlugin.log( e );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -728,6 +725,8 @@ public class CDebugTarget extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public void breakpointRemoved( IBreakpoint breakpoint, IMarkerDelta delta )
|
public void breakpointRemoved( IBreakpoint breakpoint, IMarkerDelta delta )
|
||||||
{
|
{
|
||||||
|
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
|
||||||
|
return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( breakpoint instanceof CBreakpoint )
|
if ( breakpoint instanceof CBreakpoint )
|
||||||
|
@ -735,7 +734,6 @@ public class CDebugTarget extends CDebugElement
|
||||||
}
|
}
|
||||||
catch( DebugException e )
|
catch( DebugException e )
|
||||||
{
|
{
|
||||||
CDebugCorePlugin.log( e );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -744,6 +742,8 @@ public class CDebugTarget extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public void breakpointChanged( IBreakpoint breakpoint, IMarkerDelta delta )
|
public void breakpointChanged( IBreakpoint breakpoint, IMarkerDelta delta )
|
||||||
{
|
{
|
||||||
|
if ( !isTargetBreakpoint( breakpoint ) || !isAvailable() )
|
||||||
|
return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( breakpoint instanceof CBreakpoint )
|
if ( breakpoint instanceof CBreakpoint )
|
||||||
|
@ -751,7 +751,6 @@ public class CDebugTarget extends CDebugElement
|
||||||
}
|
}
|
||||||
catch( DebugException e )
|
catch( DebugException e )
|
||||||
{
|
{
|
||||||
CDebugCorePlugin.log( e );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue