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

Fix for the 'Show breakpoints supported by selected target' action.

This commit is contained in:
Mikhail Khodjaiants 2003-01-20 23:23:20 +00:00
parent ac4ff7262a
commit 6130425ae3
2 changed files with 8 additions and 19 deletions

View file

@ -1,3 +1,7 @@
2003-01-20 Mikhail Khodjaiants
Fix for the 'Show breakpoints supported by selected target' action.
* CDebugTarget.java
2003-01-20 Alain Maglorei
* src/build.properties: Add schema in soure.cdtdebugcore.jar

View file

@ -399,23 +399,7 @@ public class CDebugTarget extends CDebugElement
{
if ( !getConfiguration().supportsBreakpoints() )
return false;
/*
if ( breakpoint instanceof ICBreakpoint )
{
ISourceLocator sl = getSourceLocator();
if ( sl != null && sl instanceof IAdaptable && ((IAdaptable)sl).getAdapter( ICSourceLocator.class ) != null )
{
return ((ICSourceLocator)((IAdaptable)sl).getAdapter( ICSourceLocator.class )).contains( breakpoint.getMarker().getResource() );
}
return true;
}
return false;
*/
if ( breakpoint instanceof ICAddressBreakpoint )
{
return supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
}
return true;
return ( findCDIBreakpoint( breakpoint ) != null );
}
private boolean supportsAddressBreakpoint( ICAddressBreakpoint breakpoint )
@ -646,13 +630,14 @@ public class CDebugTarget extends CDebugElement
{
return;
}
if ( supportsBreakpoint( breakpoint ) )
if ( getConfiguration().supportsBreakpoints() )
{
try
{
if ( breakpoint instanceof ICAddressBreakpoint )
{
setAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
if ( supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ) )
setAddressBreakpoint( (ICAddressBreakpoint)breakpoint );
}
else if ( breakpoint instanceof ICLineBreakpoint )
{