[RFC - Python scripting] New methods Symtab.global_block and Symtab.static_block (docs included)

Tom Tromey tromey@redhat.com
Wed Apr 25 07:11:00 GMT 2012


Phil> I am just not sure we should have compatibility warnings that the
Phil> content/structure of these blocks may change in some undefined way,
Phil> at some future time.

Eli> With that I agree.  Saying such things in a manual is never a good
Eli> idea, unless we also describe in detail what exactly can go wrong, how
Eli> to detect that, and how to work around.

I think the difficulty here is that saying nothing may also lull Python
users into a false sense of security that we will not change things in
this area.

But, we'd still like the freedom to change things.  For example, we've
talked off and on about implementing "hierarchical" symbol tables, where
the symbols in a namespace (e.g.) are kept in the namespace symbol, not
globally.

If we made this sort of change, then iterating over the block would
return different results.

Maybe there is some way to rewrite the original text to give us some
leeway.

Tom



More information about the Gdb-patches mailing list