This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New scope checking patch


On Wed, 2008-01-30 at 15:57 -0800, Jim Blandy wrote:
> On Jan 30, 2008 10:20 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > I actually think that this feature should be described in the node
> > "Convenience Vars", not in "Variables".  The latter describes how to
> > refer to variables in the program being debugged; while $in_scope is
> > related (and should perhaps be cross-referenced from "Variables"),
> > that is not the right place for describing GDB built-ins.
> 
> That's kind of an interesting point.  This is an entirely new kind of
> entity: it's not a convenience variable, it's a convenience function,
> or perhaps a new operator.  I'm not sure where it should go.  I'd
> expect the primary description to be in "Expressions", in the part
> that says, "GDB supports these operators, in addition to those common
> to programming languages".

Maybe we could have a discussion about what sorts of operators
gdb might provide in this context.

The canonical example for me of a missing functionality is
"offsetof" (in the sense of "sizeof").  I suppose in that
spirit, I might like to have "typeof", and "scopeof".

Maybe for C++ or objective-C, "classof"...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]