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:
parent
48a6c457d4
commit
d8253db6e6
2 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue