This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Handle volatile array types in dwarf2read.c.
- From: Mark Wielaard <mjw at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 01 Jul 2014 22:15:13 +0200
- Subject: Re: [PATCH] Handle volatile array types in dwarf2read.c.
- Authentication-results: sourceware.org; auth=none
- References: <1404164071-24432-1-git-send-email-mjw at redhat dot com> <87simlrroa dot fsf at fleche dot redhat dot com> <1404238306 dot 3766 dot 17 dot camel at bordewijk dot wildebeest dot org> <87ionhq6mg dot fsf at fleche dot redhat dot com>
On Tue, 2014-07-01 at 12:24 -0600, Tom Tromey wrote:
> This patch is ok.
Thanks, pushed.
> Well, I was thinking this:
>
> typedef int atype[23];
> const atype a;
>
> However, gcc omits the typedef from the DWARF, so I suppose some
> hand-crafted DWARF would have to be written.
I tried in a couple of ways, but GCC always happily optimizes the
unnecessary typedefs away from the DWARF, so it probably is not an issue
in practice if GDB doesn't completely handle that case.
Cheers,
Mark