Pull in fix from upstream NetBSD rev. 1.5: If Unwind_Backtrace is broken, ctx.n will still contain ~0, and we will return that which poor behavior for the user, so return 0 instead. We c
Pull in fix from upstream NetBSD rev. 1.5: If Unwind_Backtrace is broken, ctx.n will still contain ~0, and we will return that which poor behavior for the user, so return 0 instead. We could document ~0 to be an error, but that would deviate from the Linux behavior which is not desirable. Noted by Poul-Henning KampPR: 209842
show more ...
Sync up with NetBSD libexecinfo changes 2014-2019Drop portions that are unlit or redundant with llvm-libunwind: builtin.c,unwind.h, and unwind_arm_ehabi_stub.c.This code should now work with -fP
Sync up with NetBSD libexecinfo changes 2014-2019Drop portions that are unlit or redundant with llvm-libunwind: builtin.c,unwind.h, and unwind_arm_ehabi_stub.c.This code should now work with -fPIE binaries, should we choose to build anythat way.When backtrace() array is full, signal an error so the underlyingItanium-style C++ exception handling library (llvm-libunwind) knows to stoptracing instead of continuing. (It should stop on its own when it finishesunwinding, so this is mostly an extra seatbelt against an infinite loop bugin the unwinder.)
Remove usage of _WITH_DPRINTF
backtrace.3: Fix prototype of backtrace_symbols_fd_fmt().While here, fix a typoSubmitted by: Sascha Wildner <saw@online.de>Obtained from: DragonflyBSD
Fix typo in the function nameSubmitted by: Sascha Wildner <saw@online.de>Obtained from: DragonflyBSD
libexecinfo: Include terminating null in byte countOtherwise, a formatted string with a strlen equal to the remainingbuffer space would have the last character omitted (because vsnprintfalways nu
libexecinfo: Include terminating null in byte countOtherwise, a formatted string with a strlen equal to the remainingbuffer space would have the last character omitted (because vsnprintfalways null-terminates), and later the assert in backtrace_symbols_fmtwould fail.MFC after: 3 daysSponsored by: DARPA, AFRL
Add $FreeBSD$ tag for user-facing header
Update to 2013-08-29 NetBSD libexecinfo snapshotThis adds my patch to use the kern.proc.pathname sysctl instead ofrelying on procfs(5).
Update libexecinfo man page for FreeBSDSponsored by: DARPA, AFRL
FreeBSD compatibility for libexecinfo
Import NetBSD libexecinfo 20130822 to contrib