diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-02-19 11:47:16 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-02-19 11:47:16 +0000 |
commit | 879b11b03ee0b3124e021fb54b62b0f874f8f170 (patch) | |
tree | d4ecda5345f9be31a41e123b65e73b2811b14a37 /gdb/remote-rdi.c | |
parent | dcb5a0dbb604cbd6f9915020d540ddb47af91366 (diff) | |
download | gdb-879b11b03ee0b3124e021fb54b62b0f874f8f170.tar.gz |
* demangle.c (demangling_style_names): New variable.
(_initialize_demangler): Fill demangling_style_names with the
names of known demangling styles from libiberty_demanglers[]. Use
add_set_enum_cmd instead of add_set_cmd, to get completion on
demangling style names.
* proc-api.c (_initialize_proc_api): Make `procfs-file' use
file-name completion.
* remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
* solib.c (_initialize_solib): Ditto for `solib-search-path' and
`solib-absolute-prefix'.
* tracepoint.c (_initialize_tracepoint): Ditto for
`save-tracepoints'.
* win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
* cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
file-name completion.
* infcmd.c (_initialize_infcmd): Make the following commands use
the file-name completer: `tty', `args', `path', `paths', and
`run'.
Diffstat (limited to 'gdb/remote-rdi.c')
-rw-r--r-- | gdb/remote-rdi.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index a4b2428e425..d97cb65c2c9 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -32,6 +32,7 @@ #include "gdbthread.h" #include "gdbcore.h" #include "breakpoint.h" +#include "completer.h" #ifdef USG #include <sys/types.h> @@ -1021,6 +1022,8 @@ rdilogenable_command (char *args, int from_tty) void _initialize_remote_rdi (void) { + struct cmd_list_element *c; + init_rdi_ops (); add_target (&arm_rdi_ops); @@ -1028,14 +1031,15 @@ _initialize_remote_rdi (void) Adp_SetLogfile (log_filename); Adp_SetLogEnable (log_enable); - add_cmd ("rdilogfile", class_maintenance, - rdilogfile_command, - "Set filename for ADP packet log.\n\ + c = add_cmd ("rdilogfile", class_maintenance, + rdilogfile_command, + "Set filename for ADP packet log.\n\ This file is used to log Angel Debugger Protocol packets.\n\ With a single argument, sets the logfile name to that value.\n\ Without an argument, shows the current logfile name.\n\ See also: rdilogenable\n", &maintenancelist); + c->completer = filename_completer; add_cmd ("rdilogenable", class_maintenance, rdilogenable_command, |