From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53017 invoked by alias); 18 Mar 2015 15:22: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 52996 invoked by uid 89); 18 Mar 2015 15:22:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham 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, 18 Mar 2015 15:22:52 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 00025AB87C for ; Wed, 18 Mar 2015 15:22:50 +0000 (UTC) Received: from blade.nx (ovpn-116-79.ams2.redhat.com [10.36.116.79]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2IFMnwH011012 for ; Wed, 18 Mar 2015 11:22:50 -0400 Received: by blade.nx (Postfix, from userid 1000) id 75AD6265073; Wed, 18 Mar 2015 15:22:38 +0000 (GMT) Date: Wed, 18 Mar 2015 15:22:00 -0000 From: Gary Benson To: gdb-patches@sourceware.org Subject: Re: [PATCH 0/2] Use gdb_sysroot for main executable on attach Message-ID: <20150318152238.GA23222@blade.nx> References: <1425555461-22093-1-git-send-email-gbenson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425555461-22093-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00546.txt.bz2 Hi all, Please don't review this series, I'm going to rework and resubmit them as part of a larger series I'm working on. Cheers, Gary Gary Benson wrote: > Hi all, > > This series modifies GDB to prefix the main executable's path with > gdb_sysroot under certain circumstances, namely: > > * The path supplied by target_pid_to_exec_file is absolute, and > * gdb_sysroot is set and not remote. > > This logic is skipped for remote gdb_sysroots because the subsequent > code does not support opening the main executable over the remote > protocol. This is something I intend to rectify with future patches > but the ability to use gdb_sysroot like this is useful for attaching > to processes running in chroot jails and containerized environments > so I am submitting this series independently. > > Built and regtested on RHEL 6.6 x86_64. > > Ok to commit? > > Thanks, > Gary > > -- > http://gbenson.net/