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): Unwrap
from the #ifdef.
return true;
}
+#endif /* __linux__ */
+
/* Implement the ebl_set_initial_registers_tid setfunc callback. */
bool
return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs);
}
+#ifdef __linux__
+
static bool
pid_set_initial_registers (Dwfl_Thread *thread, void *thread_arg)
{
return NULL;
}
-#else /* __linux__ */
+#endif /* __linux__ */
+
+#ifndef __linux__
bool
internal_function