libdwfl: Check for kernel debuginfo file without .debug extension as well
authorRavi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Tue, 16 Feb 2016 16:21:35 +0000 (21:51 +0530)
committerMark Wielaard <mjw@redhat.com>
Mon, 22 Feb 2016 19:46:30 +0000 (20:46 +0100)
commit7802e6e57d48189e339b4ab40189eb44d8123559
tree9126c9440766f6064f561735497a2bb542b188a4
parent134684912cd18e824172b667ba13d1016782f93f
libdwfl: Check for kernel debuginfo file without .debug extension as well

Elfutils, looking for kernel debuginfo file, tries to find it at
various places. If elfutils finds /boot/vmlinu*x* file, it checks
for debufginfo section. If debuginfo is not present, it saves it as
'main elf' and continue looking for debuginfo file having .debug
extension i.e. vmlinux-RELEASE.debug.

'Ubuntu on powerpc' installs kernel as /boot/vmlinux and installs
debuginfo without any extension as /usr/lib/debug/boot/vmlinux-RELEASE
and hence, elfutils is not able to find the debuginfo file.

Here is the launchpad bug for the same:
  https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1537125

This patch adds functionality to search for a kernel or debuginfo file
both with and without .debug extension.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/find-debuginfo.c
libdwfl/linux-kernel-modules.c