From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52403 invoked by alias); 12 Sep 2018 22:07:06 -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 52394 invoked by uid 89); 12 Sep 2018 22:07:06 -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:971, water X-HELO: gateway30.websitewelcome.com Received: from gateway30.websitewelcome.com (HELO gateway30.websitewelcome.com) (192.185.147.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Sep 2018 22:07:04 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 88979A8FE for ; Wed, 12 Sep 2018 17:07:03 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 0DHrgL3QRkBj60DHrgW7zu; Wed, 12 Sep 2018 17:07:03 -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=weBOTIrgmwq4c0r3cNnQ3nvJ+rpWS82mrICbnFs0aew=; b=oKoXiP62WncYh0tNt7YHIA1YiF HsikYGA7ePSKhE523SuRz1ZBUTYMcjbBa4JPQAWQZQ5fUm7HNG/+P3NILJPIiHNekaPdGg/iipUsW zi41EvZmtG+NzSOevo5My/aW/; Received: from hca.ear2.denver1.level3.net ([4.14.116.118]:29092 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1g0DHr-002G3B-Bf; Wed, 12 Sep 2018 17:07:03 -0500 From: Tom Tromey To: Simon Marchi Cc: Subject: Re: [PATCH] python: Provide textual representation for Inferior and Objfile References: <20180912205449.12836-1-simon.marchi@ericsson.com> Date: Wed, 12 Sep 2018 22:07:00 -0000 In-Reply-To: <20180912205449.12836-1-simon.marchi@ericsson.com> (Simon Marchi's message of "Wed, 12 Sep 2018 16:54:49 -0400") Message-ID: <87zhwmid4p.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/msg00379.txt.bz2 >>>>> "Simon" == Simon Marchi writes: Simon> This makes printing debug traces more difficult than it should be. This Simon> patch provides some repr() implementation for these two types (more to Simon> come if people agree with the idea, but I want to test the water first). I think it is a good idea. Simon> In your opinion, does this require an announcement in NEWS and an entry Simon> in the manual? I don't think the output of repr() should be considered Simon> stable, as we could change it over time to make it more useful. Maybe Simon> that should be documented? That seems like a reasonable rule to me. One idea would be to make this a general rule for the gdb Python layer and document it in the "Basic Python" node. I could go either way about a NEWS entry. It seems more like a debugging convenience feature maybe? Dunno. The patch looks good. Tom