This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch 2/9] export values mechanism to Python
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 03 Jun 2008 08:51:39 -0600
- Subject: Re: [RFC][patch 2/9] export values mechanism to Python
- References: <20080429155212.444237503@br.ibm.com> <20080429155304.466637516@br.ibm.com> <20080528212451.GB2969@caradoc.them.org> <m3k5h78j64.fsf@fleche.redhat.com> <20080603130412.GB7866@caradoc.them.org>
- Reply-to: tromey at redhat dot com
>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
>> * A way to register a type->object mapping from Python
Daniel> I'm not sure what you mean. Type to what object?
Sorry -- I mean a way to map a gdb 'struct type *' to the Python
object which will handle printing objects of that type.
Daniel> An interesting question is how to access sub-pieces of a value from
Daniel> the CLI. If we pretty-print something as a map, how should the user
Daniel> get (A) the values, and (B) the fields of the raw representation of
Daniel> the map?
Yeah, good question.
Daniel> I think we need a UI before we worry about the innards.
Ok.
Tom