From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20597 invoked by alias); 10 Oct 2014 18:25:09 -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 20583 invoked by uid 89); 10 Oct 2014 18:25:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Fri, 10 Oct 2014 18:25:07 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9AIP2Ru027193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 Oct 2014 14:25:02 -0400 Received: from localhost.localdomain (ovpn-112-17.ams2.redhat.com [10.36.112.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9AIP0pX022800; Fri, 10 Oct 2014 14:25:01 -0400 Message-ID: <5438247C.8050709@redhat.com> Date: Fri, 10 Oct 2014 18:25:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: Doug Evans CC: gdb-patches@sourceware.org, eliz@gnu.org Subject: Re: [PATCH, doc RFA] Add ability to set random attributes in python objfiles,progspaces References: <54379223.3080305@redhat.com> <21560.6392.457864.907695@ruffy2.mtv.corp.google.com> In-Reply-To: <21560.6392.457864.907695@ruffy2.mtv.corp.google.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00276.txt.bz2 On 10/10/14 18:35, Doug Evans wrote: > Phil Muldoon writes: > > Maybe add a small example here as you did with gdb.Objfile? Or maybe > > an xref. One of my goals in the next year is to add (and backfill in > > existing documentation) more example led documentation for Python. > > Sometimes an example speaks (ten) thousand words! > > I couldn't think of a simple one. Maybe document (as in describe) a more complex one? > > Thanks for this patch. It seems really useful (and in implementation > > fairly simple to implement). I wonder if there are other objects in > > Python that could benefit from the ability to arbitrarily record > > keep? > > Like all things in gdb/python, things get added on a demand basis. > [This observation extends to more pieces of gdb than just gdb/python. > I'm happy to change the rules, but I do insist on there being > no double standards. :-)] Yes, I think this approach is the only way forward with Python, apart from big feature patch-sets. I wasn't trying to sideline you into providing this support for other objects btw! More a thinking "out loud" where this functionality would be useful. So yeah, we'll add it when we find we need it. Cheers Phil