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: Tom Tromey <tromey at redhat dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 04 Feb 2011 10:00:33 -0700
- Subject: Re: [rfc] Skip empty range entries in DW_AT_ranges
- References: <201102031931.p13JVP0i005066@d06av02.portsmouth.uk.ibm.com>
>>>>> "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.
Tom