This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Handle volatile array types in dwarf2read.c.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]