From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106293 invoked by alias); 5 Mar 2015 12:49:02 -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 106284 invoked by uid 89); 5 Mar 2015 12:49:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 05 Mar 2015 12:49:01 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id t25CmoPw013275; Thu, 5 Mar 2015 13:48:50 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id t25CmnZH014990; Thu, 5 Mar 2015 13:48:49 +0100 (CET) Date: Thu, 05 Mar 2015 12:49:00 -0000 Message-Id: <201503051248.t25CmnZH014990@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: gbenson@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <1425555461-22093-1-git-send-email-gbenson@redhat.com> (message from Gary Benson on Thu, 5 Mar 2015 11:37:39 +0000) Subject: Re: [PATCH 0/2] Use gdb_sysroot for main executable on attach References: <1425555461-22093-1-git-send-email-gbenson@redhat.com> X-SW-Source: 2015-03/txt/msg00150.txt.bz2 > From: Gary Benson > Date: Thu, 5 Mar 2015 11:37:39 +0000 > > 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? What problem are you trying to fix?