Re: [patch] ptype: show members of an unnamed struct inside an union

Daniel Jacobowitz
2007-08-29T18:36:51Z

On Wed, Aug 29, 2007 at 11:32:15AM -0700, Joel Brobecker wrote:
> Back to the issue at hand, it therefore seems pretty desirable to
> enhance the debugger in that case. Unfortunately, I don't think
> the proposed patch is correct, because it bases the logic on the
> size of the union/struct instead of whether the field is anonymous
> or not. Do you agree?

Right. I would be happy to treat anonymous unions specially here.

--
Daniel Jacobowitz
CodeSourcery