Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Managing breakpoints from the gdb console (UI)

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.83
diff -u -r1.83 ChangeLog
--- ChangeLog 23 Jan 2003 18:54:33 -0000 1.83
+++ ChangeLog 27 Jan 2003 22:26:51 -0000
@@ -1,3 +1,9 @@
+2003-01-27 Mikhail Khodjaiants
+ Managing breakpoints from the gdb console.
+ * AddAddressBreakpointActionDelegate.java
+ * ManageBreakpointRulerAction.java
+ * CDebugUIPlugin.java
+
 2003-01-23 Mikhail Khodjaiants
  Ignore the text selection when hovering.
  * DebugTextHovering.java
Index: src/org/eclipse/cdt/debug/internal/ui/AddAddressBreakpointActionDelegate.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/AddAddressBreakpointActionDelegate.java,v
retrieving revision 1.1
diff -u -r1.1 AddAddressBreakpointActionDelegate.java
--- src/org/eclipse/cdt/debug/internal/ui/AddAddressBreakpointActionDelegate.java 14 Jan 2003 20:26:28 -0000 1.1
+++ src/org/eclipse/cdt/debug/internal/ui/AddAddressBreakpointActionDelegate.java 27 Jan 2003 22:26:51 -0000
@@ -71,7 +71,6 @@
   if ( dialog.open() == dialog.OK )
   {
    CDebugModel.createAddressBreakpoint( ((IExecFileInfo)getDebugTarget( element ).getAdapter( IExecFileInfo.class )).getExecFile(),
-             -1,
              parseValue( dialog.getValue().trim() ),
              true,
              0,
Index: src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerAction.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerAction.java,v
retrieving revision 1.4
diff -u -r1.4 ManageBreakpointRulerAction.java
--- src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerAction.java 10 Jan 2003 19:36:39 -0000 1.4
+++ src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerAction.java 27 Jan 2003 22:26:51 -0000
@@ -286,7 +286,7 @@
      long address = ((IDisassemblyStorage)editorInput.getStorage()).getAddress( lineNumber );
      if ( address != 0 && CDebugModel.addressBreakpointExists( resource, address ) == null )
      {
-      CDebugModel.createAddressBreakpoint( resource, lineNumber, address, true, 0, "", true );
+      CDebugModel.createAddressBreakpoint( resource, address, true, 0, "", true );
      }
     }
    }
Index: src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java,v
retrieving revision 1.16
diff -u -r1.16 CDebugUIPlugin.java
--- src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java 10 Jan 2003 19:36:39 -0000 1.16
+++ src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java 27 Jan 2003 22:26:51 -0000
@@ -5,6 +5,8 @@
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
+import org.eclipse.cdt.debug.core.CDebugCorePlugin;
+import org.eclipse.cdt.debug.core.IAsyncExecutor;
 import org.eclipse.cdt.debug.core.model.ISwitchToFrame;
 import org.eclipse.cdt.debug.core.model.ISwitchToThread;
 import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
@@ -55,7 +57,10 @@
 /**
  * The main plugin class to be used in the desktop.
  */
-public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListener, IDebugEventSetListener
+public class CDebugUIPlugin extends AbstractUIPlugin
+       implements ISelectionListener,
+            IDebugEventSetListener,
+            IAsyncExecutor
 {
  //The shared instance.
  private static CDebugUIPlugin plugin;
@@ -313,6 +318,7 @@
   {
    fImageDescriptorRegistry.dispose();
   }
+  CDebugCorePlugin.getDefault().setAsyncExecutor( null );
   super.shutdown();
  }
  
@@ -327,6 +333,7 @@
   {
    ww.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
   }
+  CDebugCorePlugin.getDefault().setAsyncExecutor( this );
   DebugPlugin.getDefault().addDebugEventListener( this );
  }
 
@@ -475,5 +482,17 @@
   if ( fDisassemblyDocumentProvider == null )
    fDisassemblyDocumentProvider = new DisassemblyDocumentProvider();
   return fDisassemblyDocumentProvider;
+ }
+
+ /* (non-Javadoc)
+  * @see org.eclipse.cdt.debug.core.IAsyncExecutor#asyncExec(Runnable)
+  */
+ public void asyncExec( Runnable runnable )
+ {
+  Display display = getStandardDisplay();
+  if ( display != null )
+  {
+   display.asyncExec( runnable );
+  }
  }
 }

Back to the top