Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Display message when 'getStackDepth' is timed out

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.75
diff -u -r1.75 ChangeLog
--- ChangeLog 11 Dec 2002 16:07:01 -0000 1.75
+++ ChangeLog 13 Dec 2002 19:09:12 -0000
@@ -1,3 +1,7 @@
+2002-12-13 Mikhail Khodjaiants
+ Display message when 'getStackDepth' is timed out.
+ * CThread.java
+
 2002-12-10 Alain Magloire
 
  * src/org/eclipse/cdt/debug/core/cdi/model/ICDIVariable.java (setFormat):
Index: CThread.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java,v
retrieving revision 1.20
diff -u -r1.20 CThread.java
--- CThread.java 2 Dec 2002 23:22:22 -0000 1.20
+++ CThread.java 13 Dec 2002 19:08:48 -0000
@@ -10,6 +10,7 @@
 import java.util.Iterator;
 import java.util.List;
 
+import org.eclipse.cdt.debug.core.CDebugCorePlugin;
 import org.eclipse.cdt.debug.core.cdi.CDIException;
 import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
 import org.eclipse.cdt.debug.core.cdi.ICDIEndSteppingRange;
@@ -35,8 +36,13 @@
 import org.eclipse.cdt.debug.core.model.IState;
 import org.eclipse.cdt.debug.core.model.ISwitchToFrame;
 import org.eclipse.cdt.debug.core.sourcelookup.ISourceMode;
+import org.eclipse.cdt.debug.internal.core.CDebugUtils;
+import org.eclipse.cdt.debug.internal.core.ICDebugInternalConstants;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.MultiStatus;
+import org.eclipse.core.runtime.Status;
 import org.eclipse.debug.core.DebugEvent;
 import org.eclipse.debug.core.DebugException;
 import org.eclipse.debug.core.model.IBreakpoint;
@@ -1072,7 +1078,12 @@
   }
   catch( CDIException e )
   {
-//   targetRequestFailed( e.getMessage(), null );
+   MultiStatus status = new MultiStatus( CDebugCorePlugin.getUniqueIdentifier(),
+              ICDebugInternalConstants.STATUS_CODE_ERROR,
+              "Unable to get stack depth.",
+              null );
+   status.add( new Status( IStatus.ERROR, status.getPlugin(), status.getCode(), e.getMessage(), null ) );
+   CDebugUtils.error( status, getDebugTarget() );
   }
   return depth;
  }

Back to the top