X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fproc-api.c;h=d7ad5031b0a25e30e680d3ead87dc814969b84ca;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=e68f22bdef5f385433bbb6dd859eae14b707197e;hpb=42a4f53d2bf8938c2aeda9f52be7a20534b214a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/proc-api.c b/gdb/proc-api.c index e68f22bdef..d7ad5031b0 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -1,6 +1,6 @@ /* Machine independent support for Solaris /proc (process file system) for GDB. - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. Written by Michael Snyder at Cygnus Solutions. Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. @@ -35,7 +35,7 @@ #include /* for struct proc */ #include /* for struct user */ #include /* for O_RDWR etc. */ -#include "gdb_wait.h" +#include "gdbsupport/gdb_wait.h" #include "proc-utils.h" @@ -50,7 +50,7 @@ struct trans { const char *desc; /* Short description of value */ }; -static int procfs_trace = 0; +static bool procfs_trace = false; static FILE *procfs_file = NULL; static char *procfs_filename; @@ -416,8 +416,9 @@ proc_prettyfprint_status (long flags, int why, int what, int thread) } } +void _initialize_proc_api (); void -_initialize_proc_api (void) +_initialize_proc_api () { add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\ Set tracing for /proc api calls."), _("\