This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] expose gdb values to python


On Sat, Oct 04, 2008 at 05:58:16PM -0600, Tom Tromey wrote:
> I guess I wouldn't mind a mangling scheme if it were unobtrusive enough.

I had in mind something like this:

itype = val.gdb_type() # Invoke method
field = val.type # Fetch member value

That saves on quoting, but will make other code more verbose.  You're
probably right that it's not worthwhile.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]