Add parameter add_p_vaddr to dwfl_report_elf.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 30 Apr 2013 12:27:16 +0000 (14:27 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 5 May 2013 17:08:50 +0000 (19:08 +0200)
commit904aec2c2f62b729a536c2259274fdd440b0d923
tree475f03cd4623df1efc67785c4607e52d1e2a15cc
parentfba1588ee438e47a24e92fbd378756501933d00d
Add parameter add_p_vaddr to dwfl_report_elf.

libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Add parameter add_p_vaddr.
Set it to true for ET_EXEC and ET_CORE.  Provide alternative
setup of START and BIAS if !ADD_P_VADDR.  Set END from BIAS, not BASE.
(dwfl_report_elf): Add parameter add_p_vaddr.  Pass it down.  Add
NEW_VERSION.
(_compat_without_add_p_vaddr_dwfl_report_elf) <SHARED>: New, with
COMPAT_VERSION.
* libdwfl.h (dwfl_report_elf): Add parameter add_p_vaddr.  Describe it.
* libdwflP.h (__libdwfl_report_elf): Add parameter add_p_vaddr.
* link_map.c (report_r_debug): Use true add_p_vaddr for dwfl_report_elf.
* linux-kernel-modules.c (report_kernel): Use false add_p_vaddr for
dwfl_report_elf.
* offline.c (process_elf): Use true add_p_vaddr for dwfl_report_elf.

tests/
* dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
13 files changed:
ChangeLog
NEWS
libdw/ChangeLog
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/dwfl_report_elf.c
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/link_map.c
libdwfl/linux-kernel-modules.c
libdwfl/offline.c
tests/ChangeLog
tests/dwfl-report-elf-align.c