Exposing the Ebl * here allows libdwfl users to access the
ebl_set_initial_regs_sample callback for a given process.
* libdw/libdw.map: Add dwfl_thread_ebl.
* libdwfl/dwfl_frame.c (dwfl_thread_ebl): New function.
* libdwfl/dwfl_frame.c (dwfl_thread_ebl): New function.
dwfl_process_tracker_end;
dwfl_process_tracker_find_elf;
dwfl_process_tracker_find_pid;
+ dwfl_thread_ebl;
} ELFUTILS_0.192;
}
INTDEF(dwfl_thread_dwfl)
+Ebl *
+dwfl_thread_ebl (Dwfl_Thread *thread)
+{
+ return thread->process->ebl;
+}
+
pid_t
dwfl_thread_tid (Dwfl_Thread *thread)
{
#define _LIBDWFL_H 1
#include "libdw.h"
+#include "libebl.h"
#include <stdio.h>
/* Handle for a session using the library to attach to a single target process. */
Dwfl *dwfl_thread_dwfl (Dwfl_Thread *thread)
__nonnull_attribute__ (1);
+/* Return EBL associated with THREAD. This function never fails. */
+Ebl *dwfl_thread_ebl (Dwfl_Thread *thread)
+ __nonnull_attribute__ (1);
+
/* Return positive TID (thread ID) for THREAD. This function never fails. */
pid_t dwfl_thread_tid (Dwfl_Thread *thread)
__nonnull_attribute__ (1);