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

Fix for breakpoints disabled before launching.

This commit is contained in:
Mikhail Khodjaiants 2003-01-02 16:38:44 +00:00
parent 48a6c457d4
commit d8253db6e6
2 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,8 @@
2002-12-18 Mikhail Khodjaiants
2003-01-02 Mikhail Khodjaiants
If breakpoint or watchpoint has been disabled before launching the debugger doesn't disable it.
* CDebugTarget.java
2002-12-29 Mikhail Khodjaiants
Implementation of the 'Source Lookup' property page.
* IDirectorySourceLocation.java: new interface
* IProjectSourceLocation.java: new interface

View file

@ -1591,9 +1591,6 @@ public class CDebugTarget extends CDebugElement
ICDIBreakpointManager bm = getCDISession().getBreakpointManager();
try
{
// FIXME: We should make sure that the parent folder where we
// want to set the breakpoint is added to the list of source directory.
// where the debugger looks for files.
ICDILocation location = bm.createLocation( breakpoint.getMarker().getResource().getLocation().lastSegment(), null, breakpoint.getLineNumber() );
ICDICondition condition = bm.createCondition( breakpoint.getIgnoreCount(), breakpoint.getCondition() );
ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, condition, null );
@ -1601,6 +1598,10 @@ public class CDebugTarget extends CDebugElement
{
getBreakpoints().put( breakpoint, cdiBreakpoint );
((CBreakpoint)breakpoint).incrementInstallCount();
if ( !breakpoint.isEnabled() )
{
cdiBreakpoint.setEnabled( false );
}
}
}
catch( CoreException ce )
@ -1628,6 +1629,10 @@ public class CDebugTarget extends CDebugElement
{
getBreakpoints().put( watchpoint, cdiWatchpoint );
((CBreakpoint)watchpoint).incrementInstallCount();
if ( !watchpoint.isEnabled() )
{
cdiWatchpoint.setEnabled( false );
}
}
}
catch( CoreException ce )