diff options
author | Doug Evans <dje@google.com> | 2012-05-09 05:10:26 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-05-09 05:10:26 +0000 |
commit | 3929b32137f59422c6d03ee62499371b79ffe598 (patch) | |
tree | 8f30985fd89da547565d13622057be5998a89b0b /gdb/go-exp.y | |
parent | a8c30cbad4530d11fbfd2aee7b6efdcfd0e5750c (diff) | |
download | gdb-3929b32137f59422c6d03ee62499371b79ffe598.zip gdb-3929b32137f59422c6d03ee62499371b79ffe598.tar.gz gdb-3929b32137f59422c6d03ee62499371b79ffe598.tar.bz2 |
* go-exp.y (classify_name): Add missing assignment of fields of
yylval.ssym.
Diffstat (limited to 'gdb/go-exp.y')
-rw-r--r-- | gdb/go-exp.y | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/go-exp.y b/gdb/go-exp.y index f720629..e73b561 100644 --- a/gdb/go-exp.y +++ b/gdb/go-exp.y @@ -1482,7 +1482,7 @@ classify_name (struct block *block) &is_a_field_of_this); if (sym) { - yylval.sval = sval; + yylval.ssym.stoken = sval; yylval.ssym.sym = sym; yylval.ssym.is_a_field_of_this = is_a_field_of_this; return NAME; @@ -1499,9 +1499,15 @@ classify_name (struct block *block) YYSTYPE newlval; /* Its value is ignored. */ int hextype = parse_number (copy, yylval.sval.length, 0, &newlval); if (hextype == INT) - return NAME_OR_INT; + { + yylval.ssym.sym = NULL; + yylval.ssym.is_a_field_of_this = 0; + return NAME_OR_INT; + } } + yylval.ssym.sym = NULL; + yylval.ssym.is_a_field_of_this = 0; return NAME; } |