[PATCH, doc RFA] Add ability to set random attributes in python objfiles,progspaces
Fri Oct 10 18:25:00 GMT 2014
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.
More information about the Gdb-patches