__builtin_return_address() and __builtin_frame_address()
can't have a !0 argument on mips.
with a hint from miod@
ok aja@ (sorry for making your eyes bleed..!)
This is a quick-n-dirty BSD licensed clone of backtrace facility found
in the GNU libc, mainly intended for porting linuxish code to BSD
platforms, however it can be used at any platform which has a gcc
compiler.
from bernd@ (patch-execinfo_c from FreeBSD)