summaryrefslogtreecommitdiff
path: root/libdwfl/libdwfl.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-11-14 20:53:20 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-11-14 20:53:20 +0100
commited78237ef7c31fb1d7dc80e2c2e07484e1216727 (patch)
tree77b47858d8af36f03c5b75c3c9d8c08905d4808b /libdwfl/libdwfl.h
parent954a7b0f64346339ef12fb9c04cd2912b72c749d (diff)
downloadelfutils-ed78237ef7c31fb1d7dc80e2c2e07484e1216727.tar.gz
Fix dwfl_attach_state machine->elf
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Diffstat (limited to 'libdwfl/libdwfl.h')
-rw-r--r--libdwfl/libdwfl.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index bbabb708..303f79cc 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -625,13 +625,13 @@ typedef struct
} Dwfl_Thread_Callbacks;
/* PID is the process id associated with the DWFL state. Architecture of DWFL
- modules is specified by MACHINE. Use EM_NONE to detect architecture from
- DWFL. If EBL is NULL the function will detect it from arbitrary Dwfl_Module
- of DWFL. DWFL_ARG is the callback backend state. DWFL_ARG will be provided
- to the callbacks. *THREAD_CALLBACKS function pointers must remain valid
- during lifetime of DWFL. Function returns true on success,
- false otherwise. */
-bool dwfl_attach_state (Dwfl *dwfl, int machine, pid_t pid,
+ modules is specified by ELF, ELF must remain valid during DWFL lifetime.
+ Use NULL ELF to detect architecture from DWFL, the function will then detect
+ it from arbitrary Dwfl_Module of DWFL. DWFL_ARG is the callback backend
+ state. DWFL_ARG will be provided to the callbacks. *THREAD_CALLBACKS
+ function pointers must remain valid during lifetime of DWFL. Function
+ returns true on success, false otherwise. */
+bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
const Dwfl_Thread_Callbacks *thread_callbacks,
void *dwfl_arg)
__nonnull_attribute__ (1, 4);