]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Revert "libdwfl/linux-pid-attach.c PR33974: __libdwfl_set_initial_registers_thread...
authorSerhei Makarov <serhei@serhei.io>
Fri, 13 Mar 2026 15:03:01 +0000 (11:03 -0400)
committerSerhei Makarov <serhei@serhei.io>
Fri, 13 Mar 2026 15:03:01 +0000 (11:03 -0400)
This reverts commit da0809709ac5d3da820479015e7a9fe81b896c02.

libdwfl/linux-pid-attach.c

index aba6245033c66d5b7cda06e4ff44a3d544c35e70..a6e4e41ad3f491df70514877779a3cd00eecbac6 100644 (file)
@@ -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