From patchwork Tue Jun 9 13:20:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 7085 Received: (qmail 115425 invoked by alias); 9 Jun 2015 13:20:41 -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 115412 invoked by uid 89); 9 Jun 2015 13:20:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 09 Jun 2015 13:20:39 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id EE6EFB1F89; Tue, 9 Jun 2015 13:20:37 +0000 (UTC) Received: from blade.nx (ovpn-116-112.ams2.redhat.com [10.36.116.112]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t59DKbEB020668; Tue, 9 Jun 2015 09:20:37 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 7544A262916; Tue, 9 Jun 2015 14:20:36 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: Eli Zaretskii , Pedro Alves , Doug Evans Subject: Re: [PATCH 6/9 v2] Implement mount namespace support for native Linux targets Date: Tue, 9 Jun 2015 14:20:36 +0100 Message-Id: <1433856036-28789-1-git-send-email-gbenson@redhat.com> In-Reply-To: <001a11356bf44269fc0516ee4bd0@google.com> References: <001a11356bf44269fc0516ee4bd0@google.com> X-IsSubscribed: yes Doug Evans wrote: > Gary Benson writes: > > This commit allows GDB to access executables and shared libraries > > on native Linux targets where GDB and the inferior have different > > mount namespaces. > > > > gdb/ChangeLog: > > > > * linux-nat.c (nat/linux-namespaces.h): New include. > > (fileio.h): Likewise. > > (linux_nat_filesystem_is_local): New function. > > (linux_nat_fileio_pid_of): Likewise. > > (linux_nat_fileio_open): Likewise. > > (linux_nat_fileio_readlink): Likewise. > > (linux_nat_fileio_unlink): Likewise. > > (linux_nat_add_target): Initialize to_filesystem_is_local, > > to_fileio_open, to_fileio_readlink and to_fileio_unlink. > > (_initialize_linux_nat): New "set/show debug lin-ns" commands. > > * NEWS: Mention new "set/show debug lin-ns" commands. > > Nit: "set debug" options need a doc entry. > [I didn't see it in another patch. Eli, is this ok? (Not as a standalone patch, I'll merge it...) Thanks, Gary diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9ea846a..e1f2e58 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -23484,6 +23484,11 @@ Displays the current state of @value{GDBN} JIT debugging. Turns on or off debugging messages from the Linux LWP debug support. @item show debug lin-lwp Show the current state of Linux LWP debugging messages. +@item set debug linux-namespaces +@cindex @sc{gnu}/Linux namespaces debug messages +Turns on or off debugging messages from the Linux namespaces debug support. +@item show debug linux-namespaces +Show the current state of Linux namespaces debugging messages. @item set debug mach-o @cindex Mach-O symbols processing Control display of debugging messages related to Mach-O symbols