diff options
author | Fred Fish <fnf@specifix.com> | 1992-12-31 04:05:05 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-12-31 04:05:05 +0000 |
commit | 45fe3db4ede57e944e8a780ffdfbaafcfe5bd996 (patch) | |
tree | 7b460ce58086c3bfedf745d98a78f8a6dbc78a97 /gdb/printcmd.c | |
parent | 9bdd52ddd6baa49dbefc9841f91445211e7f2d0d (diff) | |
download | gdb-45fe3db4ede57e944e8a780ffdfbaafcfe5bd996.zip gdb-45fe3db4ede57e944e8a780ffdfbaafcfe5bd996.tar.gz gdb-45fe3db4ede57e944e8a780ffdfbaafcfe5bd996.tar.bz2 |
* c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
* c-exp.y, m2-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
and YYDEBUG is not already defined.
* c-exp.y (strncmp): Replace throughout with STREQN, missed
them during the previous replacements.
* printcmd.c (_initialize_printcmd): Update internal documentation
for "set" command to note that the assignment syntax is language
dependent.
**** start-sanitize-chill ****
* ch-exp.y (yyreds, yytoks): Remap like other yy* names.
* ch-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
and YYDEBUG is not already defined.
* ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
single_assignment_action): New terminals and nonterminal for gdb
extensions to chill expression grammer.
* ch-exp.y (match_dollar_tokens): Lexer routine to match all
tokens that start with '$' (register names, convenience vars, etc).
* ch-exp.y (tokentab2): Add GDB_ASSIGNMENT.
* ch-exp.y (yylex): Call match_dollar_tokens.
**** end-sanitize-chill ****
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index aecd57c..d8bc20f 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1960,10 +1960,11 @@ This is useful for formatted output in user-defined commands."); This is useful in user-defined commands."); add_prefix_cmd ("set", class_vars, set_command, -"Perform an assignment VAR = EXP.\n\ -You must type the \"=\". VAR may be a debugger \"convenience\" variable\n\ -(names starting with $), a register (a few standard names starting with $),\n\ -or an actual variable in the program being debugged. EXP is any expression.\n\ +"Evaluate expression EXP and assign result to variable VAR, using assignment\n\ +syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\ +example). VAR may be a debugger \"convenience\" variable (names starting\n\ +with $), a register (a few standard names starting with $), or an actual\n\ +variable in the program being debugged. EXP is any valid expression.\n\ Use \"set variable\" for variables with names identical to set subcommands.\n\ \nWith a subcommand, this command modifies parts of the gdb environment.\n\ You can see these environment settings with the \"show\" command.", @@ -1977,10 +1978,11 @@ current working language. The result is printed and saved in the value\n\ history, if it is not void."); add_cmd ("variable", class_vars, set_command, - "Perform an assignment VAR = EXP.\n\ -You must type the \"=\". VAR may be a debugger \"convenience\" variable\n\ -(names starting with $), a register (a few standard names starting with $),\n\ -or an actual variable in the program being debugged. EXP is any expression.\n\ +"Evaluate expression EXP and assign result to variable VAR, using assignment\n\ +syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\ +example). VAR may be a debugger \"convenience\" variable (names starting\n\ +with $), a register (a few standard names starting with $), or an actual\n\ +variable in the program being debugged. EXP is any valid expression.\n\ This may usually be abbreviated to simply \"set\".", &setlist); |