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: RFC: fix PR 15102


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]


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