]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Make dwfl_linux_proc_attach work even without any Dwfl_Modules.
authorMark Wielaard <mjw@redhat.com>
Mon, 7 Sep 2015 10:52:12 +0000 (12:52 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 14 Sep 2015 10:43:47 +0000 (12:43 +0200)
commit879850950bd56255cb5796c86b62bf3bdedd4fb9
tree021408416e51365b070c07f6d37a85a14892016a
parentfc0a0f303bf31194c9cef9bb6a766cec9d7794fb
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>
libdwfl/ChangeLog
libdwfl/libdwflP.h
libdwfl/linux-pid-attach.c
tests/ChangeLog
tests/Makefile.am
tests/dwfl-proc-attach.c [new file with mode: 0644]