From: Jan Kratochvil Date: Wed, 10 Oct 2012 06:08:44 +0000 (+0200) Subject: libdwfl/ X-Git-Tag: elfutils-0.156~78^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387654d501eabd17d46e1a7d2a2f27388ed52943;p=thirdparty%2Felfutils.git libdwfl/ dwfl_segment_report_module.c (dwfl_segment_report_module): Initialize mod->MAIN_BIAS. tests/ run-addrname-test.sh: New test for core vDSO bias. testfile65.bz2: New file. Signed-off-by: Jan Kratochvil --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 4a5f4eb1d..189d3b717 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,8 @@ +2012-10-10 Jan Kratochvil + + * dwfl_segment_report_module.c (dwfl_segment_report_module): + Initialize mod->MAIN_BIAS. + 2012-10-10 Jan Kratochvil * dwfl_module_addrsym.c (dwfl_module_addrsym): New function diff --git a/libdwfl/dwfl_segment_report_module.c b/libdwfl/dwfl_segment_report_module.c index afe9da1b9..7cf74994e 100644 --- a/libdwfl/dwfl_segment_report_module.c +++ b/libdwfl/dwfl_segment_report_module.c @@ -650,6 +650,7 @@ dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name, mod->main.elf = elf; mod->main.vaddr = module_start - bias; mod->main.address_sync = module_address_sync; + mod->main_bias = bias; } return finish (); diff --git a/tests/ChangeLog b/tests/ChangeLog index ac1a1f878..2495fb58c 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2012-10-10 Jan Kratochvil + + * run-addrname-test.sh: New test for core vDSO bias. + * testfile65.bz2: New file. + 2012-10-10 Jan Kratochvil * run-addrname-test.sh: New test for symbol preferences. diff --git a/tests/run-addrname-test.sh b/tests/run-addrname-test.sh index 034cf6f08..4feb19365 100755 --- a/tests/run-addrname-test.sh +++ b/tests/run-addrname-test.sh @@ -292,4 +292,10 @@ l0local2 ??:0 EOF +testfiles testfile65 +testrun_compare ../src/addr2line -S --core=testfile65 0x7fff94bffa30 <<\EOF +__vdso_time +??:0 +EOF + exit 0 diff --git a/tests/testfile65.bz2 b/tests/testfile65.bz2 new file mode 100644 index 000000000..5e925f87b Binary files /dev/null and b/tests/testfile65.bz2 differ