diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/StackFrame.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/StackFrame.java index ac9c5df2406..15e04bd5479 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/StackFrame.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/StackFrame.java @@ -79,11 +79,11 @@ public class StackFrame extends CObject implements ICDIStackFrame { cdiArgs = new ICDIArgument[0]; } } catch (MIException e) { - //throw new CDIException(e.toString()); - System.err.println(e); + //throw new CDIException(e.getMessage()); + //System.err.println(e); } catch (CDIException e) { //throw e; - System.err.println(e); + //System.err.println(e); } } if (cdiArgs == null) { @@ -120,11 +120,11 @@ public class StackFrame extends CObject implements ICDIStackFrame { variables = new ICDIVariable[0]; } } catch (MIException e) { - //throw new CDIException(e.toString()); - System.err.println(e); + //throw new CDIException(e.getMessage()); + //System.err.println(e); } catch (CDIException e) { //throw e; - System.err.println(e); + //System.err.println(e); } if (variables == null) { variables = new ICDIVariable[0]; @@ -148,7 +148,7 @@ public class StackFrame extends CObject implements ICDIStackFrame { } } catch (CDIException e) { //throw e; - System.err.println(e); + //System.err.println(e); } if (registers == null) { registers = new ICDIRegister[0]; diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Value.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Value.java index f6bcc35a56f..5f6dc4e69af 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Value.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Value.java @@ -58,7 +58,7 @@ public class Value extends CObject implements ICDIValue { } result = info.getValue(); } catch (MIException e) { - //throw new CDIException(e.toString()); + //throw new CDIException(e.getMessage()); } return result; } @@ -85,7 +85,7 @@ public class Value extends CObject implements ICDIValue { new Variable(variable.getStackFrame(), vars[i].getExp(), vars[i]); } } catch (MIException e) { - //throw new CDIException(e.toString()); + //throw new CDIException(e.getMessage()); } return variables; } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Variable.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Variable.java index 7cc49c44f23..b6b06ae8127 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Variable.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Variable.java @@ -88,7 +88,7 @@ public class Variable extends CObject implements ICDIVariable { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.toString()); + throw new CDIException(e.getMessage()); } } @@ -107,7 +107,7 @@ public class Variable extends CObject implements ICDIVariable { } return info.isEditable(); } catch (MIException e) { - throw new CDIException(e.toString()); + throw new CDIException(e.getMessage()); } } @@ -126,7 +126,7 @@ public class Variable extends CObject implements ICDIVariable { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.toString()); + throw new CDIException(e.getMessage()); } }