From 71690f364bd414c9a5bb8fd60ec50ed72be0599f Mon Sep 17 00:00:00 2001 From: Serhei Makarov Date: Thu, 27 Feb 2025 14:38:55 -0500 Subject: libdwfl: add dwfl_thread_ebl 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. --- libdwfl/dwfl_frame.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libdwfl/dwfl_frame.c') diff --git a/libdwfl/dwfl_frame.c b/libdwfl/dwfl_frame.c index 1e715346..46b16b3a 100644 --- a/libdwfl/dwfl_frame.c +++ b/libdwfl/dwfl_frame.c @@ -239,6 +239,12 @@ dwfl_thread_dwfl (Dwfl_Thread *thread) } INTDEF(dwfl_thread_dwfl) +Ebl * +dwfl_thread_ebl (Dwfl_Thread *thread) +{ + return thread->process->ebl; +} + pid_t dwfl_thread_tid (Dwfl_Thread *thread) { -- cgit v1.2.3