summaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-18 15:25:32 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-18 15:25:32 +0000
commit7425f4ec05a5dd944ec817ebf8f2131e34f2db71 (patch)
tree9479b9e1713cc972b7345f7185701d12009f945a /gdb/proc-api.c
parent26ab628f8fb333f4b372d216d514a67c28f4adfe (diff)
downloadgdb-7425f4ec05a5dd944ec817ebf8f2131e34f2db71.tar.gz
2005-02-18 Andrew Cagney <cagney@gnu.org>
Use add_setshow_boolean_command through out. Delete #ifdef 0'ed code adding set/show boolean commands. * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update. * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update. * proc-api.c, remote-mips.c, remote.c, solib.c: Update. * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update. * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update. * cli/cli-cmds.c: Update.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r--gdb/proc-api.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index bef297cdbea..aa0bb7a6cf8 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -780,13 +780,12 @@ _initialize_proc_api (void)
{
struct cmd_list_element *c;
- c = add_set_cmd ("procfs-trace", no_class,
- var_boolean, (char *) &procfs_trace,
- "Set tracing for /proc api calls.\n", &setlist);
-
- deprecated_add_show_from_set (c, &showlist);
- set_cmd_sfunc (c, set_procfs_trace_cmd);
- set_cmd_completer (c, filename_completer);
+ add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\
+Set tracing for /proc api calls."), _("\
+Show tracing for /proc api calls."), NULL,
+ set_procfs_trace_cmd,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
add_setshow_filename_cmd ("procfs-file", no_class, &procfs_filename, _("\
Set filename for /proc tracefile."), _("\