[rfc] expose gdb values to python
Thiago Jung Bauermann
bauerman@br.ibm.com
Fri Sep 26 02:00:00 GMT 2008
Daniel Jacobowitz wrote:
> On Thu, Sep 25, 2008 at 01:32:57AM -0300, Thiago Jung Bauermann wrote:
>> Is it useful to provide a casting mechanism, to enable for instance
>> access to elements from a specific type in the inheritance hierarchy?
>
> I think so. This reminds me of another reason why length is a
> peculiar concept here: GDB should (though I think does not, at
> present) support "v->D::x" and "v->C::x". So v['C::x'] would make
> sense, but you can't iterate over things like that. So maybe length
> should be the number of direct fields? Or the number of fields + base
> classes? Either way, I suggest it match what iterators do if you
> support iteration.
There's no iterator support. Not yet at least.
This version has no FIXMEs. It uses current_language for value printing, and
its length operation always fails with NotImplemented. Ok to commit?
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-values-2008-09-25.diff
Type: text/x-diff
Size: 41510 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080926/1178d3fe/attachment.bin>
More information about the Gdb-patches
mailing list