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
commitf397e30345ade7e6fcdf186693715ca227508511 (patch)
tree6033eeb56fea767ea786c349f82f205432d8efb3 /gdb/proc-api.c
parent68320ddb7e5b01262e93cf9d57ffe9ea71d289d6 (diff)
downloadbinutils-gdb-f397e30345ade7e6fcdf186693715ca227508511.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);
}