From 00ab3049d98f63e11be8f922efe60adc6e97996e Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 29 Dec 2006 04:03:56 +0000 Subject: [PATCH] fix PR 169223, the parser did not recognize the class std::string --- .../mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java index 0d2a590cc97..1d06fd2f36c 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java @@ -357,7 +357,9 @@ public class GDBTypeParser { } else if (c == '>') { count--; } - sb.append((char)c); + if (c != ' ') { + sb.append((char)c); + } } while (count > 0 && c != EOF); } else if (c != EOF) { ungetch();