From patchwork Fri Dec 22 22:05:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 25086 Received: (qmail 98015 invoked by alias); 22 Dec 2017 22:13:26 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 97995 invoked by uid 89); 22 Dec 2017 22:13:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=rights X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Dec 2017 22:13:23 +0000 Received: from ralph.baldwin.cx.com (astound-66-234-202-155.ca.astound.net [66.234.202.155]) by mail.baldwin.cx (Postfix) with ESMTPSA id 728F410A8C3; Fri, 22 Dec 2017 17:05:45 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org, binutils@sourceware.org Subject: [PATCH 4/4] Document support for 'info proc' on FreeBSD. Date: Fri, 22 Dec 2017 14:05:13 -0800 Message-Id: <20171222220513.54983-5-jhb@FreeBSD.org> In-Reply-To: <20171222220513.54983-1-jhb@FreeBSD.org> References: <20171222220513.54983-1-jhb@FreeBSD.org> X-IsSubscribed: yes gdb/doc/ChangeLog: * gdb.texinfo (Native): Rename subsection from SVR4 Process Information to Process Information. (Process Information): Document support for "info proc" on FreeBSD. --- gdb/doc/ChangeLog | 7 +++++++ gdb/doc/gdb.texinfo | 19 ++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 319e0c3cad..749771165a 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2017-12-22 John Baldwin + + * gdb.texinfo (Native): Rename subsection from SVR4 Process + Information to Process Information. + (Process Information): Document support for "info proc" on + FreeBSD. + 2017-12-15 Sergio Durigan Junior PR cli/16224 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 60ed80c363..cc70d2b249 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21734,8 +21734,8 @@ Set current context from proc address. This command isn't available on modern FreeBSD systems. @end table -@node SVR4 Process Information -@subsection SVR4 Process Information +@node Process Information +@subsection Process Information @cindex /proc @cindex examine process image @cindex process info via @file{/proc} @@ -21750,8 +21750,12 @@ information about the process running your program, or about any process running on your system. This includes, as of this writing, @sc{gnu}/Linux and Solaris, for example. -This command may also work on core files that were created on a system -that has the @samp{/proc} facility. +This command may also work on other systems that provide process +information via other means. For example, FreeBSD systems use system +control nodes to provide process information. + +This command may also work on core files that were created on +@sc{gnu}/Linux and FreeBSD systems. @table @code @kindex info proc @@ -21775,12 +21779,12 @@ a process ID rather than a thread ID). @item info proc cmdline @cindex info proc cmdline Show the original command line of the process. This command is -specific to @sc{gnu}/Linux. +supported on @sc{gnu}/Linux and FreeBSD. @item info proc cwd @cindex info proc cwd Show the current working directory of the process. This command is -specific to @sc{gnu}/Linux. +supported on @sc{gnu}/Linux and FreeBSD. @item info proc exe @cindex info proc exe @@ -21793,7 +21797,8 @@ Report the memory address space ranges accessible in the program, with information on whether the process has read, write, or execute access rights to each range. On @sc{gnu}/Linux systems, each memory range includes the object file which is mapped to that range, instead of the -memory access rights to that range. +memory access rights to that range. On FreeBSD systems, each memory +range includes the memory access rights and object file. @item info proc stat @itemx info proc status