From 52bd79302f3a26fd419637f89de92032bf6af1b6 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 9 Oct 2016 10:37:03 -0700 Subject: [PATCH] Added CStringValue.toString method foe ease of debugging. Change-Id: I1a7a243b4f212a69c6af8289d7ca3bf159b759e7 --- .../cdt/internal/core/dom/parser/CStringValue.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/CStringValue.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/CStringValue.java index 8e7cb9a72b5..3c2e74b984b 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/CStringValue.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/CStringValue.java @@ -251,4 +251,12 @@ public final class CStringValue implements IValue { public static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException { return new CStringValue(buf.getCharArray()); } + + /** + * For debugging only. + */ + @Override + public String toString() { + return new String(fFixedValue); + } } \ No newline at end of file