diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/ICDIFormattable.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/ICDIFormattable.java index 2a41362a4e2..7025f19f053 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/ICDIFormattable.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/ICDIFormattable.java @@ -21,6 +21,7 @@ public interface ICDIFormattable { * @return one of the ICDIFormat constants, excluding 'NATURAL' and 'OCTAL'. * Octal is not supported simply because the general support for it * is lacking in CDT (apparently no one is asking for it). + * @throws CDIException */ - int getNaturalFormat(); + int getNaturalFormat() throws CDIException; } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java index d349058a252..34bd4bbb8f6 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java @@ -566,7 +566,7 @@ public class CValue extends AbstractCValue { } } - private static CVariableFormat getNaturalFormat(ICDIValue value, CVariableFormat defaultFormat) { + private static CVariableFormat getNaturalFormat(ICDIValue value, CVariableFormat defaultFormat) throws CDIException { if (value instanceof ICDIFormattable) { int naturalFormat = ((ICDIFormattable)value).getNaturalFormat(); switch (naturalFormat) {