[rfc] Detect dwarf address size mismatch
Mark Kettenis
mark.kettenis@xs4all.nl
Tue Jul 17 13:21:00 GMT 2007
> Date: Tue, 17 Jul 2007 08:47:11 -0400
> From: Daniel Jacobowitz <drow@false.org>
Hi Daniel,
Sorry I didn't notice this before but:
> @@ -6792,6 +6793,15 @@ dwarf_decode_lines (struct line_header *
> _("mangled .debug_line section"));
> return;
> }
> + /* Make sure that we parsed the extended op correctly. If e.g.
> + we expected a different address size than the producer used,
> + we may have read the wrong number of bytes. */
> + if (line_ptr != extended_end)
> + {
> + complaint (&symfile_complaints,
> + _("mangled .debug_line section"));
> + return;
> + }
> break;
> case DW_LNS_copy:
> if (lh->num_file_names < file)
The complaint "mangled .debug_line section" seems a bit unhelpful to
me, especially since there are now two identical messages for what
appears to be somewhat different conditions. Any chance of changing
it something more distinguishable?
Mark
More information about the Gdb-patches
mailing list