diff options
author | Mark Wielaard <mjw@redhat.com> | 2013-12-30 22:00:57 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2013-12-31 13:59:51 +0100 |
commit | 19108019192ab273c53ae324be448d29dac806ca (patch) | |
tree | 6605f8c9e3e15ea50c77ccd9fe1d2b69f68959b5 /libdwfl/linux-proc-maps.c | |
parent | ac65261cc5f4b313d4f852e0a7f2b1b91918550b (diff) | |
download | elfutils-19108019192ab273c53ae324be448d29dac806ca.tar.gz |
libdwfl: Add dwfl_core_file_attach and dwfl_linux_proc_attach.
Rewrite __libdwfl_attach_state_for_pid and __libdwfl_attach_state_for_core
as public functions and don't call them from dwfl_linux_proc_report and
dwfl_core_file_report anymore. This lets the user attach state explicitly
independ from how the dwfl modules have been reported. Since attaching
state is an explicit action now the error can be returned directly and we
don't need to keep track of process_attach_error. dwfl_linux_proc_attach
lets the user can tell libdwfl whether caller takes care of ptrace
attaching and stopping the threads under inspection, or whether the
callback needs to take care of that and detaching again.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libdwfl/linux-proc-maps.c')
-rw-r--r-- | libdwfl/linux-proc-maps.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libdwfl/linux-proc-maps.c b/libdwfl/linux-proc-maps.c index b1f8b331..cdb6959d 100644 --- a/libdwfl/linux-proc-maps.c +++ b/libdwfl/linux-proc-maps.c @@ -301,13 +301,6 @@ dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid) fclose (f); - if (result == 0) - { - /* Possible error is ignored, DWFL still may be useful for non-unwinding - operations. */ - __libdwfl_attach_state_for_pid (dwfl, pid); - } - return result; } INTDEF (dwfl_linux_proc_report) |