From: Per Bothner Date: Mon, 9 Oct 1995 01:00:09 +0000 (+0000) Subject: * ch-exp.y (yylex): Also look for '$' following '$'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93f972b7dee1d1e0b2232d9f3ebf932734480add;p=binutils-gdb.git * ch-exp.y (yylex): Also look for '$' following '$'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1446ed7e75c..5d0489a2bf5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Sun Oct 8 18:01:04 1995 Per Bothner + + * ch-exp.y (yylex): Also look for '$' following '$'. + Sat Oct 7 22:52:42 1995 Michael Meissner * ch-exp.y (yylex): Fix typo. diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y index 0d35a703705..70823ef2cdd 100644 --- a/gdb/ch-exp.y +++ b/gdb/ch-exp.y @@ -1479,7 +1479,7 @@ yylex () yylval.sval.ptr = lexptr; do { lexptr++; - } while (isalnum (*lexptr) || (*lexptr == '_')); + } while (isalnum (*lexptr) || *lexptr == '_' || *lexptr == '$'); yylval.sval.length = lexptr - yylval.sval.ptr; write_dollar_variable (yylval.sval); return GDB_VARIABLE;