Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Displaying error messages in the Launch view.

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.49
diff -u -r1.49 ChangeLog
--- ChangeLog 2 Dec 2002 23:22:19 -0000 1.49
+++ ChangeLog 3 Dec 2002 04:10:54 -0000
@@ -1,9 +1,18 @@
 2002-12-02 Mikhail Khodjaiants
+ If the target is suspended because of error display the error message in the Launch view.
+ * CDTDebugModelPresentation.java
+
+2002-12-02 Mikhail Khodjaiants
  Refactoring org.eclipse.cdt.debug.core - UI changes.
 
 2002-12-02 Mikhail Khodjaiants
  'Run to line' and 'Add _expression_' actions for assembly editor.
  *plugin.xml
+
+2002-12-01 Mikhail Khodjaiants
+ Contributing breakpoint actions to asm editor.
+ * plugin.xml
+ * ManageBreakpointRulerActionDelegate.java
 
 2002-11-29 Mikhail Khodjaiants
  Cosmetic change for the MemoryView preference page.
Index: src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java,v
retrieving revision 1.28
diff -u -r1.28 CDTDebugModelPresentation.java
--- src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 2 Dec 2002 23:22:19 -0000 1.28
+++ src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 3 Dec 2002 04:10:55 -0000
@@ -10,6 +10,7 @@
 import java.util.HashMap;
 
 import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
+import org.eclipse.cdt.debug.core.cdi.ICDIErrorInfo;
 import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
 import org.eclipse.cdt.debug.core.cdi.ICDISession;
 import org.eclipse.cdt.debug.core.cdi.ICDISignal;
@@ -362,6 +363,10 @@
      if ( info != null && info instanceof ICDIBreakpointHit )
      {
       return target.getName() + " (Breakpoint hit)";
+     }
+     if ( info != null && info instanceof ICDIErrorInfo )
+     {
+      return MessageFormat.format( "{0} (Error: {1})", new String[] { target.getName(), ((ICDIErrorInfo)info).getMessage() } );
      }
      if ( info != null && info instanceof ICDISession )
      {

Back to the top