1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fix for bug 73498: Condition is cleared when disabled conditional breakpoint is set.

This commit is contained in:
Mikhail Khodjaiants 2004-09-08 21:38:02 +00:00
parent dae6b18551
commit 81400bdcc2
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-09-07 Mikhail Khodjaiants
Fix for bug 73498: Condition is cleared when disabled conditional breakpoint is set.
* CBreakpointManager.java
2004-09-07 Alain Magloire
Remove ICDIBreakpointManager.java
Remove ICDICatchEvent/ICDICatchpoint

View file

@ -292,9 +292,10 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
if ( cdiBreakpoint == null )
return;
breakpoint.setTargetFilter( getDebugTarget() );
if ( !breakpoint.isEnabled() )
cdiBreakpoint.setEnabled( false );
boolean enabled = breakpoint.isEnabled();
setBreakpointCondition( breakpoint );
if ( !enabled )
cdiBreakpoint.setEnabled( false );
}
catch( CoreException e ) {
requestFailed( MessageFormat.format( InternalDebugCoreMessages.getString( "CBreakpointManager.0" ), new String[] { e.getMessage() } ), e ); //$NON-NLS-1$