Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix in the 'supportsBreakpoints' method of CDebugTarget

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.83
diff -u -r1.83 ChangeLog
--- ChangeLog 20 Dec 2002 22:21:32 -0000 1.83
+++ ChangeLog 29 Dec 2002 23:40:38 -0000
@@ -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
Index: CDebugTarget.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java,v
retrieving revision 1.62
diff -u -r1.62 CDebugTarget.java
--- CDebugTarget.java 17 Dec 2002 19:56:22 -0000 1.62
+++ CDebugTarget.java 29 Dec 2002 23:41:00 -0000
@@ -385,18 +385,21 @@
   */
  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)

Back to the top