This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python scripting] New methods Symtab.global_block and Symtab.static_block (docs included)
>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
Siva> Is there a way to iterate over all blocks of a Symtab right after
Siva> loading?
Nope.
Siva> This part addresses Symtab => Block part but not completely; good
Siva> enough for my immediate needs though.
I'm curious if you're going to implement iteration over sub-blocks.
Siva> However, in the case of this patch, is there a
Siva> chance that a symtab->blockvector->nblocks == 0?
I don't believe so.
Tom