This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] readelf: Fix regression with multiple files and implicit debug_info reading.
- From: Mark Wielaard <mark at klomp dot org>
- To: elfutils-devel at sourceware dot org
- Date: Thu, 31 May 2018 14:22:52 +0200
- Subject: Re: [PATCH] readelf: Fix regression with multiple files and implicit debug_info reading.
- References: <1527580648-18586-1-git-send-email-mark@klomp.org>
On Tue, 2018-05-29 at 09:57 +0200, Mark Wielaard wrote:
> Commit 314e9d7d "readelf: Handle .debug_info first if any other debug
> section needs it" introduced a regression when handling multiple files.
> The implicit and explicit printing of debuginfo weren't reset and so
> the second file would not show (or scan) the .debug_info section when
> needed.
>
> Fix by resetting the implicit and explicit section printing flags.
> Add a testcase that prints the .debug_loc section for two files and
> check that the CUs are resolved.
Pushed to master.