This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] mi/10586
>>>>> "Keith" == Keith Seitz <firstname.lastname@example.org> 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
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?