This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] debugging anonymous unions
- From: Jim Blandy <jimb at redhat dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: gcc at gcc dot gnu dot org, gdb at gcc dot gnu dot org
- Date: 29 Nov 2003 21:47:28 -0500
- Subject: Re: [rfc] debugging anonymous unions
- References: <20031128215759.GA31439@twiddle.net>
In principle, having the debug info reflect the structure of the code
is a good thing. But I can't see what it buys us in this case, over
simply emitting all the (effectively) top-level members as separate
variables, whose locations happen to overlap. Is there anything
interesting you can think of that GDB could do only if it knew there
was an anonymous union involved?