[PATCH] Record and write files in read_dwarf5_line_entries.
Mark Wielaard
mark@klomp.org
Mon Jul 12 20:31:10 GMT 2021
Hi,
On Mon, Jul 05, 2021 at 06:35:04PM +0200, Mark Wielaard wrote:
> Without giving -d /foo/build/bar debugedit wouldn't actually output
> any file from the line number table for DWARF5.
>
> * tools/debugedit.c (read_dwarf5_line_entries): Don't make
> collecting_dirs and writing_files depend on dest_dir. Always
> read idx for strp or line_strp on phase 0. comp_dir_len is
> zero when comp_dir is NULL.
> * tests/debugedit.at: Add source list mode tests for DWARF4
> and DWARF5.
Pushed.
> https://bugzilla.redhat.com/show_bug.cgi?id=1966987
Although I added test cases to show this patch fixes a real bug I am
not 100% sure it also fixes the bug reported in the above bug report.
Cheers,
Mark
More information about the Debugedit
mailing list