This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix PR 15102
- From: Doug Evans <dje at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 6 Feb 2013 13:55:37 -0800
- Subject: Re: RFC: fix PR 15102
- References: <87vca5xzqw.fsf@fleche.redhat.com>
On Wed, Feb 6, 2013 at 6:50 AM, Tom Tromey <tromey@redhat.com> wrote:
> In the absence of comments I plan to check this in.
>
> This fixes PR 15102. The bug is that certain DWARF causes gdb to make a
> bogus array range type.
>
> The patch fixes the bug by changing read_subrange_type to use the result
> of check_typedef when examining properties of the underlying type of the
> subrange. This lets gdb notice that the underlying type is unsigned.
IWBN to have a comment in the code explaining why the result of
check_typedef is used.
[it's not necessarily obvious]