From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0475533056684120355==" MIME-Version: 1.0 From: Jonathan Lebon To: elfutils-devel@lists.fedorahosted.org Subject: [PATCH 0/4] Improve elfutils diagnostics Date: Mon, 11 May 2015 15:38:12 -0400 Message-ID: <1431373096-9212-1-git-send-email-jlebon@redhat.com> --===============0475533056684120355== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, This patch series attempts to improve elfutils feedback to help guide the user towards fixing erroneous situations. The first two patches enable elfutils to give a more specific error when compressed sections fail to be decompressed. The third patch add the new function dwfl_errmsg_details(), which can be used to provide dynamic freeform information to the user to supplement the static error message from dwfl_errmsg(). The fourth patch makes use of this facility to provide the user with all the paths that were attempted while looking for the debug file. Suggestions and comments welcome! Related: RHBZ507682, RHBZ1184245. Jonathan Lebon (4): dwarf_begin_elf: decouple section searching from reading dwarf_begin_elf: new error for compression failure dwfl_error: support error details dwfl_module_getdwarf: report paths tried libdw/dwarf_begin_elf.c | 195 ++++++++++++++++++++++-------------= ---- libdw/dwarf_error.c | 1 + libdw/libdw.map | 1 + libdw/libdwP.h | 1 + libdwfl/dwfl_build_id_find_elf.c | 21 +++++ libdwfl/dwfl_error.c | 27 ++++++ libdwfl/dwfl_module.c | 3 + libdwfl/dwfl_module_getdwarf.c | 10 ++ libdwfl/find-debuginfo.c | 120 +++++++++++++++++------- libdwfl/libdwfl.h | 3 + libdwfl/libdwflP.h | 3 + 11 files changed, 269 insertions(+), 116 deletions(-) -- = 2.1.0 --===============0475533056684120355==--