summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-09-07 12:52:12 +0200
committerMark Wielaard <mjw@redhat.com>2015-09-14 12:43:47 +0200
commit879850950bd56255cb5796c86b62bf3bdedd4fb9 (patch)
tree021408416e51365b070c07f6d37a85a14892016a /tests/Makefile.am
parentfc0a0f303bf31194c9cef9bb6a766cec9d7794fb (diff)
downloadandroid_external_elfutils-879850950bd56255cb5796c86b62bf3bdedd4fb9.tar.gz
android_external_elfutils-879850950bd56255cb5796c86b62bf3bdedd4fb9.tar.bz2
android_external_elfutils-879850950bd56255cb5796c86b62bf3bdedd4fb9.zip
libdwfl: Make dwfl_linux_proc_attach work even without any Dwfl_Modules.
dwfl_linux_proc_attach depended on a Dwfl_Module with the correct ELF header already being available. That isn't really necessary since when we attach we have the main exe ELF file available. Just use that to make dwfl_linux_proc_attach always work. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d04c270a..ca2c2d79 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -51,7 +51,7 @@ check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
dwfl-report-elf-align varlocs backtrace backtrace-child \
backtrace-data backtrace-dwarf debuglink debugaltlink \
buildid deleted deleted-lib.so aggregate_size vdsosyms \
- getsrc_die strptr newdata elfstrtab
+ getsrc_die strptr newdata elfstrtab dwfl-proc-attach
asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
asm-tst6 asm-tst7 asm-tst8 asm-tst9
@@ -118,7 +118,7 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
run-stack-demangled-test.sh \
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab
+ run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach
if !BIARCH
export ELFUTILS_DISABLE_BIARCH = 1
@@ -446,6 +446,8 @@ getsrc_die_LDADD = $(libdw) $(libelf)
strptr_LDADD = $(libelf)
newdata_LDADD = $(libelf)
elfstrtab_LDADD = $(libelf)
+dwfl_proc_attach_LDADD = $(libdw)
+dwfl_proc_attach_LDFLAGS = -pthread
if GCOV
check: check-am coverage