From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53800 invoked by alias); 12 Sep 2018 23:37:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 53789 invoked by uid 89); 12 Sep 2018 23:37:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_3,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= 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; Wed, 12 Sep 2018 23:37:30 +0000 Received: from ralph.com (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 6C3F310B429 for ; Wed, 12 Sep 2018 19:37:28 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH v2 0/6] Add a new 'info proc files' command Date: Wed, 12 Sep 2018 23:37:00 -0000 Message-Id: <20180912233707.43492-1-jhb@FreeBSD.org> X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00389.txt.bz2 This should include most of the suggested documentation fixes from the first series. It also adds an additional patch that attempts to tidy up some of the other "info proc" documentation. One change I haven't made (wasn't sure if it was still desired) was if we wanted to replace the specific annotations on individual 'info proc' subcommands about which OS's supported those commands with a single, more general statement that commands may only be supported on a subset of systems supported by GDB. I've moved more of the shared code for generating the 'info proc files' output to fbsd-tdep.c. One open question still from the first series is if GDB can assume the presence of routines like 'inet_ntoa' and 'inet_ntop' for formatting IPv4 and IPv6 addresses. It seems GDB does assume the presence of newer routines (e.g. getaddrinfo()) on POSIX systems in other places (e.g. ser-tcp.c), though in those places we use different APIs for Win32. John Baldwin (6): Use KF_PATH to verify the size of a struct kinfo_file. Add a new 'info proc files' subcommand of 'info proc'. Add support for 'info proc files' on FreeBSD core dumps. Support 'info proc files' on live FreeBSD processes. Document the 'info proc files' command. Make the "info proc" documentation more consistent. gdb/ChangeLog | 58 ++++++ gdb/NEWS | 3 + gdb/defs.h | 3 + gdb/doc/ChangeLog | 10 + gdb/doc/gdb.texinfo | 34 +++- gdb/fbsd-nat.c | 32 ++- gdb/fbsd-tdep.c | 468 +++++++++++++++++++++++++++++++++++++++++++- gdb/fbsd-tdep.h | 20 ++ gdb/infcmd.c | 24 ++- 9 files changed, 638 insertions(+), 14 deletions(-) -- 2.18.0