summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrzegorz Kuligowski2012-11-08 16:14:03 (EST)
committer Marc Khouzam2012-11-08 16:14:03 (EST)
commit68cd40522318d71e2591bfec609cd7ebca16ebaa (patch)
tree1619ecfca82535d76589370907958fcaed1e2c49
parentaff4913d1747a1a4a533ee175a52190af89f1045 (diff)
downloadorg.eclipse.cdt-68cd40522318d71e2591bfec609cd7ebca16ebaa.zip
org.eclipse.cdt-68cd40522318d71e2591bfec609cd7ebca16ebaa.tar.gz
org.eclipse.cdt-68cd40522318d71e2591bfec609cd7ebca16ebaa.tar.bz2
Bug 393474: In Expression view: cannot cast to type that contain commas
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBPatternMatchingExpressions.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBPatternMatchingExpressions.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBPatternMatchingExpressions.java
index fd3e5e0..ce30b9e 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBPatternMatchingExpressions.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBPatternMatchingExpressions.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Marc Khouzam (Ericsson) - initial API and implementation
+ * Grzegorz Kuligowski - Cannot cast to type that contain commas (bug 393474)
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.service;
@@ -69,9 +70,10 @@ public class GDBPatternMatchingExpressions extends AbstractDsfService implements
* the different expressions contained in a group-expression.
* The [] are not part the characters, but are used in the regex format.
* Note that we don't allow a space separator because spaces are valid within
- * an expression (e.g., i + 1)
+ * an expression (e.g., i + 1).
+ * We also don't allow a comma because they are used in templates (bug 393474)
*/
- private final static String GROUP_EXPRESSION_SEPARATORS_REGEXP = "[,;]"; //$NON-NLS-1$
+ private final static String GROUP_EXPRESSION_SEPARATORS_REGEXP = "[;]"; //$NON-NLS-1$
/**
* A group-expression is an expression that requires expansion into a (potentially empty)