diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-18 19:24:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-18 19:24:40 +0000 |
commit | 2370e8539ca40ee80525e8549698426251a11053 (patch) | |
tree | a7b9cdc12c6616b6d6be4beb5f219da1af7b74a6 /gdb/cli/cli-cmds.c | |
parent | 43e4916ffe6295e4240921985e67b6bdf0562137 (diff) | |
download | gdb-2370e8539ca40ee80525e8549698426251a11053.zip gdb-2370e8539ca40ee80525e8549698426251a11053.tar.gz gdb-2370e8539ca40ee80525e8549698426251a11053.tar.bz2 |
* cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
"define", "while", and "if" commands.
* cli/cli-script.c (while_command, if_command, define_command)
(document_command): Now static.
(_initialize_cli_script): New function.
* cli/cli-script.h (while_command, if_command, define_command)
(document_command): Don't declare.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 6ee3e3c..e0dc145 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1705,16 +1705,6 @@ use \"\\n\" if you want a newline to be printed.\n\ Since leading and trailing whitespace are ignored in command arguments,\n\ if you want to print some you must use \"\\\" before leading whitespace\n\ to be printed or after trailing whitespace.")); - add_com ("document", class_support, document_command, _("\ -Document a user-defined command.\n\ -Give command name as argument. Give documentation on following lines.\n\ -End with a line of just \"end\".")); - add_com ("define", class_support, define_command, _("\ -Define a new command name. Command name is argument.\n\ -Definition appears on following lines, one command per line.\n\ -End with a line of just \"end\".\n\ -Use the \"document\" command to give documentation for the new command.\n\ -Commands defined in this way may have up to ten arguments.")); add_setshow_enum_cmd ("script-extension", class_support, script_ext_enums, &script_ext_mode, _("\ @@ -1782,19 +1772,6 @@ the previous command number shown."), add_cmd ("version", no_set_class, show_version, _("Show what version of GDB this is."), &showlist); - add_com ("while", class_support, while_command, _("\ -Execute nested commands WHILE the conditional expression is non zero.\n\ -The conditional expression must follow the word `while' and must in turn be\n\ -followed by a new line. The nested commands must be entered one per line,\n\ -and should be terminated by the word `end'.")); - - add_com ("if", class_support, if_command, _("\ -Execute nested commands once IF the conditional expression is non zero.\n\ -The conditional expression must follow the word `if' and must in turn be\n\ -followed by a new line. The nested commands must be entered one per line,\n\ -and should be terminated by the word 'else' or `end'. If an else clause\n\ -is used, the same rules apply to its nested commands as to the first ones.")); - /* If target is open when baud changes, it doesn't take effect until the next open (I think, not sure). */ add_setshow_zinteger_cmd ("remotebaud", no_class, &baud_rate, _("\ |