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 | fa58ee119617c4302d6bf94ff751c3ee8e1062cd (patch) | |
tree | fa0ec2445538b681e9d27d997818528437e631a0 /gdb/cli/cli-cmds.c | |
parent | fb33b906916095eb3e0497bccbbb8017f9e4a4eb (diff) | |
download | gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.zip gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.tar.gz gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.tar.bz2 |
* 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/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 4cc4aa3..19b5970 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -778,9 +778,10 @@ from the target.", &setlist), "Generic command for showing gdb debugging flags", &showdebuglist, "show debug ", 0, &showlist); - add_com ("shell", class_support, shell_escape, - "Execute the rest of the line as a shell command. \n\ + c = add_com ("shell", class_support, shell_escape, + "Execute the rest of the line as a shell command. \n\ With no arguments, run an inferior shell."); + c->completer = filename_completer; /* NOTE: cagney/2000-03-20: Being able to enter ``(gdb) !ls'' would be a really useful feature. Unfortunately, the below wont do @@ -791,8 +792,9 @@ With no arguments, run an inferior shell."); if (xdb_commands) add_com_alias ("!", "shell", class_support, 0); - add_com ("make", class_support, make_command, - "Run the ``make'' program using the rest of the line as arguments."); + c = add_com ("make", class_support, make_command, + "Run the ``make'' program using the rest of the line as arguments."); + c->completer = filename_completer; add_cmd ("user", no_class, show_user, "Show definitions of user defined commands.\n\ Argument is the name of the user defined command.\n\ |