This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Skip empty range entries in DW_AT_ranges
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: tromey at redhat dot com (Tom Tromey)
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 4 Feb 2011 19:21:16 +0100 (CET)
- Subject: Re: [rfc] Skip empty range entries in DW_AT_ranges
Tom Tromey wrote:
> >>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
>
> Ulrich> The fix should be to simply ignore empty range entries as suggested by
> Ulrich> the DWARF standard. The patch below does so, which fixes the problems
> Ulrich> we were seeing. In addition, the patch adds code to complain about
> Ulrich> *inverted* ranges (i.e. beginning > end), which are not allowed at all
> Ulrich> according to DWARF (I haven't actually seen this complaint).
>
> This looks good to me.
OK, thanks for the review!
I've checked this in now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com