diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java index 867662d4c14..7888e4a43c8 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java @@ -145,7 +145,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { resumeInferior(state); } @@ -174,7 +174,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { // Resume the program and enable events. resumeInferior(state); @@ -202,7 +202,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { resumeInferior(state); } @@ -248,7 +248,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { resumeInferior(state); } @@ -276,7 +276,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa } // FIXME: Generate a DestroyEvent for deleted ones. } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } return (ICDIBreakpoint[]) listBreakpoints(); } @@ -342,7 +342,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("Error parsing"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { resumeInferior(state); } @@ -377,7 +377,7 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa throw new CDIException("Parsing Error"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } finally { resumeInferior(state); } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CTarget.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CTarget.java index 56e586b87bb..0d8d54ff85e 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CTarget.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CTarget.java @@ -107,7 +107,7 @@ public class CTarget implements ICDITarget { } currentThreadId = info.getNewThreadId(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } // Resetting threads may change the value of @@ -246,7 +246,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = run.getToken(); } @@ -268,7 +268,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = cont.getToken(); } else if (mi.getMIInferior().isTerminated()) { @@ -293,7 +293,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = step.getToken(); } @@ -312,7 +312,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = stepi.getToken(); } @@ -331,7 +331,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = next.getToken(); } @@ -350,7 +350,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = nexti.getToken(); } @@ -369,7 +369,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = finish.getToken(); } @@ -383,7 +383,7 @@ public class CTarget implements ICDITarget { try { mi.getMIInferior().interrupt(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } @@ -401,7 +401,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } // Unfortunately -target-detach does not generate an // event so we do it here. @@ -424,7 +424,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = finish.getToken(); } @@ -451,7 +451,7 @@ public class CTarget implements ICDITarget { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } lastExecutionToken = until.getToken(); @@ -475,7 +475,7 @@ public class CTarget implements ICDITarget { } return info.getExpression(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java index 7577a1107b1..231493cfc0f 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java @@ -106,7 +106,7 @@ public class CThread extends CObject implements ICDIThread { getCTarget().setCurrentThread(oldThread); return info.getDepth(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); //System.out.println(e); } } @@ -189,7 +189,7 @@ public class CThread extends CObject implements ICDIThread { regMgr.update(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryBlock.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryBlock.java index 1b8af054b26..01fd6d740e7 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryBlock.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryBlock.java @@ -177,7 +177,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } // If the assign was succesfull fire a MIChangedEvent() via refresh. diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryManager.java index ab605c4f843..2ccbc8d95bd 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/MemoryManager.java @@ -130,7 +130,7 @@ public class MemoryManager extends SessionObject implements ICDIMemoryManager { } return info; } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Register.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Register.java index 708b55c1305..fd8ab27afaf 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Register.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Register.java @@ -168,7 +168,7 @@ public class Register extends CObject implements ICDIRegister, ICDIValue { } } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } else { String u = getUniqName(); @@ -214,7 +214,7 @@ public class Register extends CObject implements ICDIRegister, ICDIValue { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } // If the assign was succesfull fire a MIRegisterChangedEvent() MIRegisterChangedEvent change = new MIRegisterChangedEvent(registers.getToken(), diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java index d09b8b8d7b5..d2c632e930e 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java @@ -52,7 +52,7 @@ public class RegisterManager extends SessionObject { } return regs; } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } @@ -119,7 +119,7 @@ public class RegisterManager extends SessionObject { MIEvent[] events = (MIEvent[])eventList.toArray(new MIEvent[0]); mi.fireEvents(events); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RuntimeOptions.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RuntimeOptions.java index 4946f989b54..31f24e8758a 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RuntimeOptions.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/RuntimeOptions.java @@ -18,12 +18,6 @@ import org.eclipse.cdt.debug.mi.core.command.MIGDBSet; import org.eclipse.cdt.debug.mi.core.output.MIInfo; /** - * @author alain - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. */ public class RuntimeOptions implements ICDIRuntimeOptions { 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 d722b74084d..95e5988106c 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 @@ -18,12 +18,6 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarEvaluateExpressionInfo; import org.eclipse.cdt.debug.mi.core.output.MIVarListChildrenInfo; /** - * @author alain - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. */ public class Value extends CObject implements ICDIValue { @@ -120,7 +114,7 @@ public class Value extends CObject implements ICDIValue { } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } 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 10edbae1852..d2e58538ccb 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 @@ -20,7 +20,6 @@ import org.eclipse.cdt.debug.mi.core.output.MIVar; import org.eclipse.cdt.debug.mi.core.output.MIVarShowAttributesInfo; /** - * @author alain */ public class Variable extends CObject implements ICDIVariable { @@ -89,7 +88,7 @@ public class Variable extends CObject implements ICDIVariable { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } // If the assign was succesfull fire a MIVarChangedEvent() @@ -112,7 +111,7 @@ public class Variable extends CObject implements ICDIVariable { } return info.isEditable(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } @@ -131,7 +130,7 @@ public class Variable extends CObject implements ICDIVariable { throw new CDIException("No answer"); } } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java index 8d66f3e2a5a..1eed9fbbb2e 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java @@ -117,7 +117,7 @@ public class VariableManager extends SessionObject implements ICDIExpressionMana MIEvent[] events = (MIEvent[])eventList.toArray(new MIEvent[0]); mi.fireEvents(events); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } @@ -139,7 +139,7 @@ public class VariableManager extends SessionObject implements ICDIExpressionMana element.name = name; element.stackframe = stack; } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } return element; @@ -163,7 +163,7 @@ public class VariableManager extends SessionObject implements ICDIExpressionMana mi.postCommand(var); var.getMIInfo(); } catch (MIException e) { - throw new CDIException(e.getMessage()); + throw new MI2CDIException(e); } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Watchpoint.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Watchpoint.java index bf417931223..4b9d85af40f 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Watchpoint.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Watchpoint.java @@ -10,12 +10,6 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIWatchpoint; import org.eclipse.cdt.debug.mi.core.output.MIBreakPoint; /** - * @author alain - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. */ public class Watchpoint extends Breakpoint implements ICDIWatchpoint {