[RFC - Python Scripting] New method gdb.Symtab.blocks_iterator - docs included

Doug Evans dje@google.com
Wed Apr 11 05:44:00 GMT 2012


On Tue, Apr 10, 2012 at 9:55 PM, Siva Chandra <sivachandra@google.com> wrote:
> Tom> I think it would be a bit more future-proof to just let the user access
> Tom> the symtab's global and static blocks, then rely on iteration over
> Tom> symbols within a block.  This would mean also adding a way to fetch a
> Tom> block's subblocks.
>
> To begin with then, can I remove the idea of this iterator (and the
> blocks method) and add two methods global_block and static_block?

[fwiw] Even for global and static blocks, I'd like to see it written
down that we don't promise absolute consistency from release to
release.



More information about the Gdb-patches mailing list