add_info ("proc", info_proc, "Show process status information using /proc entry.\n\ Specify process id or use current inferior by default.\n\ Specify keywords for detailed information; default is summary.\n\ Keywords are: `all', `faults', `flags', `id', `mappings', `signals',\n\ `status', `syscalls', and `times'.\n\ Unambiguous abbreviations may be used.");  init_syscall_table ();
add_info ("proc", info_proc_cmd, "Show /proc process information about any running process.\n\ Specify process id, or use the program being debugged by default.\n\ Specify keyword 'mappings' for detailed info on memory mappings."); add_com ("proc-trace-entry", no_class, proc_trace_sysentry_cmd, "Give a trace of entries into the syscall."); add_com ("proc-trace-exit", no_class, proc_trace_sysexit_cmd, "Give a trace of exits from the syscall."); add_com ("proc-untrace-entry", no_class, proc_untrace_sysentry_cmd, "Cancel a trace of entries into the syscall."); add_com ("proc-untrace-exit", no_class, proc_untrace_sysexit_cmd, "Cancel a trace of exits from the syscall.");
_initialize_procfs (){#ifdef HAVE_OPTIONAL_PROC_FS  char procname[32];  int fd;  /* If we have an optional /proc filesystem (e.g. under OSF/1),     don't add procfs support if we cannot access the running     GDB via /proc.  */  sprintf (procname, PROC_NAME_FMT, getpid ());  if ((fd = open (procname, O_RDONLY)) < 0)    return;  close (fd);#endif  add_target (&procfs_ops);  add_info ("proc", info_proc, "Show process status information using /proc entry.\n\Specify process id or use current inferior by default.\n\Specify keywords for detailed information; default is summary.\n\Keywords are: `all', `faults', `flags', `id', `mappings', `signals',\n\`status', `syscalls', and `times'.\n\Unambiguous abbreviations may be used.");  init_syscall_table ();}