diff options
| author | Jan Kratochvil <[email protected]> | 2013-04-30 14:27:16 +0200 |
|---|---|---|
| committer | Jan Kratochvil <[email protected]> | 2013-05-05 19:08:50 +0200 |
| commit | 904aec2c2f62b729a536c2259274fdd440b0d923 (patch) | |
| tree | 475f03cd4623df1efc67785c4607e52d1e2a15cc /tests | |
| parent | fba1588ee438e47a24e92fbd378756501933d00d (diff) | |
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 <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 4 | ||||
| -rw-r--r-- | tests/dwfl-report-elf-align.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index f6c004c7..4003851f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2013-04-30 Jan Kratochvil <[email protected]> + + * dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf. + 2013-04-29 Mark Wielaard <[email protected]> * test-subr.sh: Don't use pushd, just cd into test-dir. diff --git a/tests/dwfl-report-elf-align.c b/tests/dwfl-report-elf-align.c index 0e8bfe3e..a4e97d3c 100644 --- a/tests/dwfl-report-elf-align.c +++ b/tests/dwfl-report-elf-align.c @@ -53,7 +53,7 @@ main (int argc, char **argv) uintptr_t base = strtoull (argv[2], &endptr, 0); assert (endptr && !*endptr); - Dwfl_Module *mod = dwfl_report_elf (dwfl, argv[1], argv[1], -1, base); + Dwfl_Module *mod = dwfl_report_elf (dwfl, argv[1], argv[1], -1, base, false); assert (mod != NULL); uintptr_t funcaddr = strtoull (argv[3], &endptr, 0); |
