]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw, libdwfl: Save original path of ELF file
authorOmar Sandoval <osandov@fb.com>
Wed, 27 Sep 2023 18:20:58 +0000 (11:20 -0700)
committerMark Wielaard <mark@klomp.org>
Thu, 2 Nov 2023 17:03:40 +0000 (18:03 +0100)
commit14c5658acfc24367bc1cf63b0e04b70220bedad2
treeff291bc186a44d1a4ce16296334cf832f342ff16
parent0999fca6431594d49d5eceb5cd9eba685cdf1305
libdw, libdwfl: Save original path of ELF file

libdw and libdwfl currently save the path of the directory containing
the ELF file to use when searching for alt and dwo files.  To search for
dwp files, we need the file name too.  Add an elfpath field to Dwarf,
and set the debugdir field from it.  Also update libdwfl to set elfpath
and debugdir.

Signed-off-by: Omar Sandoval <osandov@fb.com>
libdw/ChangeLog
libdw/dwarf_begin_elf.c
libdw/dwarf_end.c
libdw/libdwP.h
libdwfl/ChangeLog
libdwfl/dwfl_module.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/libdwflP.h
libdwfl/offline.c