summaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-17 17:11:04 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-17 17:11:04 +0000
commita95dd3a9b7497aa1725611a746dd441825be0189 (patch)
tree196bf61224d80d92b9fa6d51564050c4695597bc /gdb/proc-api.c
parenta0e9ec787f6e2d5d3ab2925270282051234e8fe4 (diff)
downloadgdb-a95dd3a9b7497aa1725611a746dd441825be0189.tar.gz
2005-02-17 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_filename_cmd): Set the completer to filename_completer. * solib.c (_initialize_solib, reload_shared_libraries): Use add_setshow_filename_cmd. * serial.c (_initialize_serial): Ditto. * remote-utils.c (_initialize_sr_support): Ditto.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r--gdb/proc-api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index ec8060ce2bb..bef297cdbea 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -788,10 +788,10 @@ _initialize_proc_api (void)
set_cmd_sfunc (c, set_procfs_trace_cmd);
set_cmd_completer (c, filename_completer);
- c = add_set_cmd ("procfs-file", no_class, var_filename,
- (char *) &procfs_filename,
- "Set filename for /proc tracefile.\n", &setlist);
-
- deprecated_add_show_from_set (c, &showlist);
- set_cmd_sfunc (c, set_procfs_file_cmd);
+ add_setshow_filename_cmd ("procfs-file", no_class, &procfs_filename, _("\
+Set filename for /proc tracefile."), _("\
+Show filename for /proc tracefile."), NULL,
+ set_procfs_file_cmd,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
}