mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix in the 'supportsBreakpoints' method of CDebugTarget.
This commit is contained in:
parent
ef4c0537c6
commit
ece05b22c6
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-12-29 Mikhail Khodjaiants
|
||||
Fix in the 'supportsBreakpoints' method of CDebugTarget
|
||||
* CDebugTarget.java: No need to check if the breakpoint file belongs to the source locator.
|
||||
|
||||
2002-12-18 Mikhail Khodjaiants
|
||||
Implementing the 'Source Lookup' property page.
|
||||
* CDirectorySourceLocation.java
|
||||
|
|
|
@ -385,18 +385,21 @@ public class CDebugTarget extends CDebugElement
|
|||
*/
|
||||
public boolean supportsBreakpoint( IBreakpoint breakpoint )
|
||||
{
|
||||
/*
|
||||
if ( !getConfiguration().supportsBreakpoints() )
|
||||
return false;
|
||||
if ( breakpoint instanceof ICBreakpoint )
|
||||
{
|
||||
ISourceLocator sl = getSourceLocator();
|
||||
if ( sl != null && sl instanceof ICSourceLocator )
|
||||
if ( sl != null && sl instanceof IAdaptable && ((IAdaptable)sl).getAdapter( ICSourceLocator.class ) != null )
|
||||
{
|
||||
return ((ICSourceLocator)sl).contains( breakpoint.getMarker().getResource() );
|
||||
return ((ICSourceLocator)((IAdaptable)sl).getAdapter( ICSourceLocator.class )).contains( breakpoint.getMarker().getResource() );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
*/
|
||||
return getConfiguration().supportsBreakpoints();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue