aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-10-09 01:00:09 +0000
committerPer Bothner <per@bothner.com>1995-10-09 01:00:09 +0000
commit93f972b7dee1d1e0b2232d9f3ebf932734480add (patch)
treee44cf36556c480e11be2d06185267aa94ed0b63c /gdb/ch-exp.y
parent23de525f424308c69ea60ac18f68cf2544e52738 (diff)
downloadgdb-93f972b7dee1d1e0b2232d9f3ebf932734480add.zip
gdb-93f972b7dee1d1e0b2232d9f3ebf932734480add.tar.gz
gdb-93f972b7dee1d1e0b2232d9f3ebf932734480add.tar.bz2
* ch-exp.y (yylex): Also look for '$' following '$'.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y
index 0d35a70..70823ef 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;