Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] CDT Changes

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.70
diff -u -r1.70 ChangeLog
--- ChangeLog	4 Dec 2002 21:34:31 -0000	1.70
+++ ChangeLog	5 Dec 2002 15:57:26 -0000
@@ -1,3 +1,12 @@
+2002-12-05 Alain Magloire
+
+	Some debuggers like gdb/mi can provide detail information, for example
+	gdb/mi dumps errors in mi "log stream" output.
+
+	* src/.../cdi/CDIException.java (getDetailMessage): New method to provide
+	more information it need be.
+	* src/.../cdi/ICDIErrorInfo.java (getDetailMessage: New method.
+
 2002-12-04 Mikhail Khodjaiants
 	Added the 'setChanged' method to ICValue. This method should common for CValue and 
 	CArrayPartitionValue to implement 'setChanged' of CVariable correctly.
Index: src/org/eclipse/cdt/debug/core/cdi/CDIException.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/CDIException.java,v
retrieving revision 1.2
diff -u -r1.2 CDIException.java
--- src/org/eclipse/cdt/debug/core/cdi/CDIException.java	13 Aug 2002 05:25:54 -0000	1.2
+++ src/org/eclipse/cdt/debug/core/cdi/CDIException.java	5 Dec 2002 15:57:26 -0000
@@ -14,6 +14,8 @@
  */
 public class CDIException extends Exception {
 
+	String details = "";
+
 	public CDIException() {
 		super();
 	}
@@ -21,4 +23,17 @@
 	public CDIException(String s) {
 		super(s);
 	}
+	
+	public CDIException(String s, String d) {
+		super(s);
+		details = d;
+	}
+
+	/**
+	 * Returns a more details message(if any).
+	 */
+	public String getDetailMessage() {
+		return details;
+	}
+
 }
Index: src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java,v
retrieving revision 1.1
diff -u -r1.1 ICDIErrorInfo.java
--- src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java	2 Dec 2002 18:34:20 -0000	1.1
+++ src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java	5 Dec 2002 15:57:26 -0000
@@ -18,4 +18,9 @@
 	 * Returns the error message.
 	 */
 	public String getMessage();
+	
+	/**
+	 * Returns a more verbatim error message(if any).
+	 */
+	public String getDetailMessage();
 }



Back to the top