From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50713 invoked by alias); 3 Jun 2015 17:23:43 -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 50696 invoked by uid 89); 3 Jun 2015 17:23:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 03 Jun 2015 17:23:42 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B4291D3E82; Wed, 3 Jun 2015 13:23:40 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kjFqiGG1RJ8L; Wed, 3 Jun 2015 13:23:40 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 777F1D3A66; Wed, 3 Jun 2015 13:23:40 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 193E0406D3; Wed, 3 Jun 2015 10:23:39 -0700 (PDT) Date: Wed, 03 Jun 2015 17:23:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: Gary Benson , Doug Evans , gdb-patches , Philippe Waroquiers Subject: Re: [PATCH] Make only user-specified executable filenames sticky Message-ID: <20150603172339.GA24958@adacore.com> References: <20150505151448.GA1417@blade.nx> <1430907977-30605-1-git-send-email-gbenson@redhat.com> <5551D7AD.8080500@redhat.com> <20150513075456.GA3730@blade.nx> <5553157D.3060104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5553157D.3060104@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-06/txt/msg00045.txt.bz2 > Though maybe we're trying to make gdb > too smart, as in, some obscure cases things may go wrong, > depending on program/binary and target you connect to, > which is confusing. After quickly going through the discussion, I tend to agree. How about: (1) Provide a way to recover the situation _after_ the "attach"; (2) Print a warning if the attach notices that the executable name does not match the one given by the user, and include the procedure for fixing it if the user made an error. ? We could do this in two steps: a. Push Gary's patch today, after having enhanced it to print a warning when discrepancies are discovered; b. Work on a way to achieve (1), and then enhance the warning to mention how to resolve this issue. That way, we could have (a) in time for 7.10, and work for (b) without delaying 7.10. Whether (b) makes it to 7.10 will then depend on how quickly we find a solution, but it's OK IMO for it to provide that in a later release. -- Joel