[PATCH v3] libdwfl/linux-pid-attach.c PR33974: __libdwfl_set_initial_registers_thread on non-Linux
Mark Wielaard
mark@klomp.org
Wed Mar 18 11:49:07 GMT 2026
Hi Serhei,
On Mon, 2026-03-16 at 10:48 -0400, Serhei Makarov wrote:
> libdwfl_stacktrace uses __libdwfl_set_initial_registers_thread but it
> is wrapped by #ifdef __linux__, causing build errors on non-Linux
> platforms.
>
> * linux-pid-attach.c (__libdwfl_set_initial_registers_thread):
> Remove from inside the '#ifdef __linux__'.
> * dwfl_frame_regs.c (__libdwfl_set_initial_registers_thread):
> Move here.
Thanks for updating the comment. This looks good to me.
Cheers,
Mark
More information about the Elfutils-devel
mailing list