Python pretty-printing [3/6]

Daniel Jacobowitz drow@false.org
Tue Apr 7 02:27:00 GMT 2009


On Mon, Apr 06, 2009 at 11:03:42PM -0300, Thiago Jung Bauermann wrote:
> El lun, 06-04-2009 a las 21:16 -0400, Daniel Jacobowitz escribió:
> > On Mon, Apr 06, 2009 at 05:26:06PM -0600, Tom Tromey wrote:
> > At some point I know we'll want explicit lookup routines; there's
> > scope to consider.
> 
> For scope specification and definition, I have created a gdb.Block class
> in the python branch. I'm not sure if you had a look at it. Is there any
> other way that scope could be defined?

Types are usually not block scoped, at least, I can't think of any
language where that's allowed, but it's adequate since they can be
function scoped.  They can also be source file scoped, or you could
look up a type by name in an objfile or globally.  Linkage of types is
not as well defined as for symbols.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list