diff options
author | Alain Magloire | 2003-06-03 20:29:35 +0000 |
---|---|---|
committer | Alain Magloire | 2003-06-03 20:29:35 +0000 |
commit | 6c689f09202cd54f82d18632ba4a97101702a076 (patch) | |
tree | c6d94d2761713b030df2c1d3d5d97c3f900a8e59 | |
parent | 23349206639609905bd91d617b0a37238d25c5b4 (diff) | |
download | org.eclipse.cdt-6c689f09202cd54f82d18632ba4a97101702a076.tar.gz org.eclipse.cdt-6c689f09202cd54f82d18632ba4a97101702a076.tar.xz org.eclipse.cdt-6c689f09202cd54f82d18632ba4a97101702a076.zip |
Accept "char [200]" as valid typename.
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java index ead23f320df..dfa192dc125 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java @@ -312,8 +312,19 @@ public class GDBTypeParser { } else if (tokenType == NAME) { // Useless we do not need the name of the variable name = " " + token; + } else if (tokenType == PARENS) { + prependChild(GDBType.FUNCTION); + } else if (tokenType == BRACKETS) { + int len = 0; + if (token.length() > 0) { + try { + len = Integer.parseInt(token); + } catch (NumberFormatException e) { + } + } + prependChild(GDBType.ARRAY, len); } else { - // FIXME: another oops bad declaration + // oops bad declaration ? return; } |