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: [RFA] mi/10586


>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> According to the documentation, -var-info-expression is supposed to
Keith> return a name of the variable/child which is to be presented to the
Keith> user. I don't think we want to present "0_anonymous". GCC uses
Keith> "<anonymous struct>", and that seems like a reasonable convention to
Keith> follow.

Actually, thinking about it more, it seems to me that it would be ok for
these cases to just be errors.  There's no really good way to refer to
the anonymous field as its own entity, and I don't think we should hack
up the parser and whatever else to support this.

Keith> Clearly the two last elements dealing with 0_anonymous are
Keith> incorrect. I believe these should be:
Keith> -var-info-path-expression a.public.0_anonymous = ""

This one, I think should be an error.

Keith> -var-info-path-expression a.public.0_anonymous.b = "((a).b)"

But I agree about this one.

What do you think?

Tom


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