Has anyone tried to get libunwind building on NetBSD 5.x? I'm not
a NetBSD expert, but find myself trying to get a minimal libunwind
set-up running on it at fairly short order. 

I only need a very minimal build of libunwind, supporting just
local x86 unwinding on unoptimised code. The biggest problem is
that NetBSD 5.0.1 (the oldish version I'm stuck with) doesn't have
dl_iterate_phdr. But I guess that we shouldn't need it just for
walking an unoptimised stack that has saved break pointers. 

I did try the obvious hacks (remove references to libunwind-ptrace and
libunwind-dwarf-* in the makefile, hack in the relevant JB_* macros
since NetBSD's setjmp.h doesn't have them) and have successfully built
libunwind.a and libunwind-x86.a, but currently without some important
stuff (like the functions defined in src/Gos-freebsd.c). If I'm
lucky, the missing stuff will port to NetBSD without huge changes, but
I really don't know yet. I will hack more on this tomorrow, but if
anyone has been through this already, do let me know. Thanks in advance
for any help!

Stephen

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to