From: Serhei Makarov Date: Fri, 13 Mar 2026 15:03:01 +0000 (-0400) Subject: Revert "libdwfl/linux-pid-attach.c PR33974: __libdwfl_set_initial_registers_thread... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=620bdc41f8e6ee0da8fca552b9323ac218a36da1;p=thirdparty%2Felfutils.git Revert "libdwfl/linux-pid-attach.c PR33974: __libdwfl_set_initial_registers_thread on non-Linux" This reverts commit da0809709ac5d3da820479015e7a9fe81b896c02. --- diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c index aba62450..a6e4e41a 100644 --- a/libdwfl/linux-pid-attach.c +++ b/libdwfl/linux-pid-attach.c @@ -302,8 +302,6 @@ pid_getthread (Dwfl *dwfl __attribute__ ((unused)), pid_t tid, return true; } -#endif /* __linux__ */ - /* Implement the ebl_set_initial_registers_tid setfunc callback. */ bool @@ -329,8 +327,6 @@ __libdwfl_set_initial_registers_thread (int firstreg, unsigned nregs, return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs); } -#ifdef __linux__ - static bool pid_set_initial_registers (Dwfl_Thread *thread, void *thread_arg) { @@ -511,9 +507,7 @@ __libdwfl_get_pid_arg (Dwfl *dwfl) return NULL; } -#endif /* __linux__ */ - -#ifndef __linux__ +#else /* __linux__ */ bool internal_function