]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Record dwfl_attach_state error and return it on failure.
authorMark Wielaard <mjw@redhat.com>
Wed, 11 Jun 2014 13:14:23 +0000 (15:14 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 11 Jun 2014 13:31:41 +0000 (15:31 +0200)
commit14beac3b6f22b8d7a054980f74c4f8d33b969fc4
tree829d37f7f338c037c35e82d43fa86e34b1977324
parent824f393411acc4596ab557b6e7bff9e48c61f951
libdwfl: Record dwfl_attach_state error and return it on failure.

When dwfl_attach_state fails functions that need the process state should
return the error that caused the attach to fail. Use this in the backtrace
test to signal any attach failure. This makes sure that architectures that
don't provide unwinder support get properly detected (and the tests SKIPs)
Also don't assert when trying to attach a non-core ELF file, but return an
error to indicate failure.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/dwfl_frame.c
libdwfl/libdwflP.h
libdwfl/linux-core-attach.c
libdwfl/linux-pid-attach.c
tests/ChangeLog
tests/backtrace.c