From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52401 invoked by alias); 12 Sep 2018 21:42:47 -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 52391 invoked by uid 89); 12 Sep 2018 21:42:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:931 X-HELO: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.193.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Sep 2018 21:42:44 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway36.websitewelcome.com (Postfix) with ESMTP id DCFA6400DB6B5 for ; Wed, 12 Sep 2018 15:47:42 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 0CuJg3OmVPvAd0CuJgy5Kw; Wed, 12 Sep 2018 16:42:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DOCTV3ZUYArgDgZInPfDlQ3JMY4rqctCylAPEt1WUx4=; b=rl894K46fH7Ixglq2r2u8dF3Q0 0kVayFMlFicz8VUN8rIVP8iMPwT+51XRX9zTlCYW/BaWakls7cWbwbB6DTZh+YRRzMeSVe0F6ebVl SHRcIMUnbXBE1qViSY/F5echn; Received: from hca.ear2.denver1.level3.net ([4.14.116.118]:36363 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1g0CuJ-002Avx-4s; Wed, 12 Sep 2018 16:42:43 -0500 From: Tom Tromey To: Simon Marchi Cc: Subject: Re: [PATCH 1/3] python: Add Inferior.progspace property References: <20180912193617.16523-1-simon.marchi@ericsson.com> Date: Wed, 12 Sep 2018 21:42:00 -0000 In-Reply-To: <20180912193617.16523-1-simon.marchi@ericsson.com> (Simon Marchi's message of "Wed, 12 Sep 2018 15:36:15 -0400") Message-ID: <87h8iujstp.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-09/txt/msg00374.txt.bz2 >>>>> "Simon" == Simon Marchi writes: Simon> This patch adds a progspace property to the gdb.Inferior type, which Simon> allows getting the gdb.Progspace object associated to that inferior. Simon> In conjunction with the following patch, this will allow scripts iterate Simon> on objfiles associated with a particular inferior. I did this a long time ago, plus a bit more. I think it would be good to compare approaches. Old thread here: https://sourceware.org/ml/gdb-patches/2014-06/msg00616.html I rebaesd it - see the python/progspace-submit branch in my github. I haven't re-tested it yet. Simon> While modifying py-inferior.exp, I added some checks for the other Simon> Inferior properties, when the Inferior is no longer valid. This doesn't Simon> seem tested at the moment. This could go in immediately if you were so inclined. Tom