This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python Scripting] New method gdb.Symtab.blocks_iterator - docs included
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.