mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* parse.c (write_dollar_variable): New function.
* c-exp.y (yylex): Replace code for recognizing '$' pseudo-variables with a call to write_dollar_variable. Simplify grammar correspondingly. * f-exp.y: Likewise. * m2-exp.y: Likewise. * ch-exp.y: Likewise. (Remove function match_dollar_tokens.) * scm-exp.c (scm_lreadr): Call write_dollar_variable to handle '$'.
This commit is contained in:
@ -373,6 +373,11 @@ scm_lreadr (skipping)
|
||||
if (!skipping)
|
||||
{
|
||||
str.length = lexptr - str.ptr;
|
||||
if (str.ptr[0] == '$')
|
||||
{
|
||||
write_dollar_variable (str);
|
||||
return;
|
||||
}
|
||||
write_exp_elt_opcode (OP_NAME);
|
||||
write_exp_string (str);
|
||||
write_exp_elt_opcode (OP_NAME);
|
||||
|
Reference in New Issue
Block a user