diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-03-06 06:28:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-03-06 06:28:35 +0000 |
commit | 5ba2abebe76a125d8e4e3181db399e489bd63eeb (patch) | |
tree | 12e05164d03f494e072de11f2c16a8e6efa40235 /gdb/infcmd.c | |
parent | d35d4f709fbc3d254fca5ec67aaeb820bf6a43e2 (diff) | |
download | gdb-5ba2abebe76a125d8e4e3181db399e489bd63eeb.zip gdb-5ba2abebe76a125d8e4e3181db399e489bd63eeb.tar.gz gdb-5ba2abebe76a125d8e4e3181db399e489bd63eeb.tar.bz2 |
* cli/cli-decode.c (set_cmd_completer): New function.
* command.h (set_cmd_completer): Declare.
* cli/cli-decode.h (set_cmd_completer): Ditto.
* breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
* cli/cli-cmds.c (init_cli_cmds): Ditto.
* win32-nat.c (_initialize_inftarg): Ditto.
* remote-rdi.c (_initialize_remote_rdi): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* hppa-tdep.c (_initialize_hppa_tdep): Ditto.
* source.c (_initialize_source): Ditto.
* exec.c (_initialize_exec): Ditto.
* solib.c (_initialize_solib): Ditto.
* top.c (init_main): Ditto.
* tracepoint.c (_initialize_tracepoint): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* printcmd.c (_initialize_printcmd): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 0238448..f14811e 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1865,14 +1865,14 @@ _initialize_infcmd (void) c = add_com ("tty", class_run, tty_command, "Set terminal for future runs of program being debugged."); - c->completer = filename_completer; + set_cmd_completer (c, filename_completer); c = add_set_cmd ("args", class_run, var_string_noescape, (char *) &inferior_args, "Set argument list to give program being debugged when it is started.\n\ Follow this command with any number of args, to be passed to the program.", &setlist); - c->completer = filename_completer; + set_cmd_completer (c, filename_completer); set_cmd_sfunc (c, notice_args_set); c = add_show_from_set (c, &showlist); set_cmd_sfunc (c, notice_args_read); @@ -1883,7 +1883,7 @@ Follow this command with any number of args, to be passed to the program.", With an argument VAR, prints the value of environment variable VAR to\n\ give the program being debugged. With no arguments, prints the entire\n\ environment to be given to the program.", &showlist); - c->completer = noop_completer; + set_cmd_completer (c, noop_completer); add_prefix_cmd ("unset", no_class, unset_command, "Complement to certain \"set\" commands", @@ -1893,7 +1893,7 @@ environment to be given to the program.", &showlist); "Cancel environment variable VAR for the program.\n\ This does not affect the program until the next \"run\" command.", &unsetlist); - c->completer = noop_completer; + set_cmd_completer (c, noop_completer); c = add_cmd ("environment", class_run, set_environment_command, "Set environment variable value to give the program.\n\ @@ -1901,7 +1901,7 @@ Arguments are VAR VALUE where VAR is variable name and VALUE is value.\n\ VALUES of environment variables are uninterpreted strings.\n\ This does not affect the program until the next \"run\" command.", &setlist); - c->completer = noop_completer; + set_cmd_completer (c, noop_completer); c = add_com ("path", class_files, path_command, "Add directory DIR(s) to beginning of search path for object files.\n\ @@ -1909,7 +1909,7 @@ $cwd in the path means the current working directory.\n\ This path is equivalent to the $PATH shell variable. It is a list of\n\ directories, separated by colons. These directories are searched to find\n\ fully linked executable files and separately compiled object files as needed."); - c->completer = filename_completer; + set_cmd_completer (c, filename_completer); c = add_cmd ("paths", no_class, path_info, "Current search path for finding object files.\n\ @@ -1918,7 +1918,7 @@ This path is equivalent to the $PATH shell variable. It is a list of\n\ directories, separated by colons. These directories are searched to find\n\ fully linked executable files and separately compiled object files as needed.", &showlist); - c->completer = noop_completer; + set_cmd_completer (c, noop_completer); add_com ("attach", class_run, attach_command, "Attach to a process or file outside of GDB.\n\ @@ -1974,14 +1974,14 @@ Argument N means do this N times (or till program stops for another reason)."); "Execute until the program reaches a source line greater than the current\n\ or a specified line or address or function (same args as break command).\n\ Execution will also stop upon exit from the current stack frame."); - c->completer = location_completer; + set_cmd_completer (c, location_completer); add_com_alias ("u", "until", class_run, 1); c = add_com ("jump", class_run, jump_command, "Continue program being debugged at specified line or address.\n\ Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\ for an address to start at."); - c->completer = location_completer; + set_cmd_completer (c, location_completer); if (xdb_commands) { @@ -1992,7 +1992,7 @@ address.\n\ Give as argument either LINENUM or *ADDR, where ADDR is an \n\ expression for an address to start at.\n\ This command is a combination of tbreak and jump."); - c->completer = location_completer; + set_cmd_completer (c, location_completer); } if (xdb_commands) @@ -2013,7 +2013,7 @@ Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n\n\ With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n\ To cancel previous arguments and run with no arguments,\n\ use \"set args\" without arguments."); - c->completer = filename_completer; + set_cmd_completer (c, filename_completer); add_com_alias ("r", "run", class_run, 1); if (xdb_commands) add_com ("R", class_run, run_no_args_command, |