This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, doc RFA] Add ability to set random attributes in python objfiles,progspaces
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org, eliz at gnu dot org
- Date: Fri, 10 Oct 2014 19:25:00 +0100
- Subject: Re: [PATCH, doc RFA] Add ability to set random attributes in python objfiles,progspaces
- Authentication-results: sourceware.org; auth=none
- References: <yjt27g09qcx2 dot fsf at ruffy dot mtv dot corp dot google dot com> <54379223 dot 3080305 at redhat dot com> <21560 dot 6392 dot 457864 dot 907695 at ruffy2 dot mtv dot corp dot google dot com>
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