From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128173 invoked by alias); 27 May 2015 10:18:53 -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 128157 invoked by uid 89); 27 May 2015 10:18:52 -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; Wed, 27 May 2015 10:18:51 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4RAIkW9017980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 May 2015 06:18:46 -0400 Received: from blade.nx (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4RAIjhN020538; Wed, 27 May 2015 06:18:45 -0400 Received: by blade.nx (Postfix, from userid 1000) id C56E2264075; Wed, 27 May 2015 11:18:44 +0100 (BST) Date: Wed, 27 May 2015 10:18:00 -0000 From: Gary Benson To: Doug Evans Cc: gdb-patches@sourceware.org, Eli Zaretskii , Pedro Alves , google.com@redhat.com Subject: Re: [PATCH 6/9 v2] Implement mount namespace support for native Linux targets Message-ID: <20150527101844.GE19722@blade.nx> References: <001a11356bf44269fc0516ee4bd0@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001a11356bf44269fc0516ee4bd0@google.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00655.txt.bz2 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. > I also didn't see this option used in this patch.] It's used in nat/linux-namespaces.c. I'll add some documentation for it. Cheers, Gary -- http://gbenson.net/