This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] debugging anonymous unions
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gcc at gcc dot gnu dot org, gdb at gcc dot gnu dot org
- Date: Sun, 30 Nov 2003 19:01:03 -0500
- Subject: Re: [rfc] debugging anonymous unions
- References: <20031128215759.GA31439@twiddle.net> <vt27k1i7etb.fsf@zenia.home> <20031130204259.GA25745@twiddle.net>
On Sun, Nov 30, 2003 at 12:42:59PM -0800, Richard Henderson wrote:
> On Sat, Nov 29, 2003 at 09:47:28PM -0500, Jim Blandy wrote:
> > Is there anything
> > interesting you can think of that GDB could do only if it knew there
> > was an anonymous union involved?
>
> The only sligtly interesting thing is not having to replicate a large
> location list, with small or no perturbations based on offset. Otherwise
> it makes sense to present gdb with multiple top-level variables.
For a single location expression, sure, but if there's a location list
couldn't you reference the same one?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer