summaryrefslogtreecommitdiff
path: root/contrib/libexecinfo
Commit message (Collapse)AuthorAgeFilesLines
* Pull in fix from upstream NetBSD rev. 1.5:Poul-Henning Kamp2020-09-211-1/+3
| | | | | | | | | | | | 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 Kamp PR: 209842 Notes: svn path=/head/; revision=365952
* Sync up with NetBSD libexecinfo changes 2014-2019Conrad Meyer2019-10-265-207/+44
| | | | | | | | | | | | | | | | | Drop 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 any that way. When backtrace() array is full, signal an error so the underlying Itanium-style C++ exception handling library (llvm-libunwind) knows to stop tracing instead of continuing. (It should stop on its own when it finishes unwinding, so this is mostly an extra seatbelt against an infinite loop bug in the unwinder.) Notes: svn path=/head/; revision=354112
* Remove usage of _WITH_DPRINTFBaptiste Daroussin2016-07-301-1/+0
| | | | Notes: svn path=/head/; revision=303529
* backtrace.3: Fix prototype of backtrace_symbols_fd_fmt().Baptiste Daroussin2015-12-221-3/+3
| | | | | | | | | | While here, fix a typo Submitted by: Sascha Wildner <saw@online.de> Obtained from: DragonflyBSD Notes: svn path=/head/; revision=292629
* Fix typo in the function nameBaptiste Daroussin2015-11-051-3/+3
| | | | | | | | Submitted by: Sascha Wildner <saw@online.de> Obtained from: DragonflyBSD Notes: svn path=/head/; revision=290384
* libexecinfo: Include terminating null in byte countEd Maste2013-11-211-1/+1
| | | | | | | | | | | | | Otherwise, a formatted string with a strlen equal to the remaining buffer space would have the last character omitted (because vsnprintf always null-terminates), and later the assert in backtrace_symbols_fmt would fail. MFC after: 3 days Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=258426
* Add $FreeBSD$ tag for user-facing headerEd Maste2013-09-031-0/+1
| | | | Notes: svn path=/head/; revision=255176
* Update to 2013-08-29 NetBSD libexecinfo snapshotEd Maste2013-08-293-13/+27
| | | | | | | | This adds my patch to use the kern.proc.pathname sysctl instead of relying on procfs(5). Notes: svn path=/head/; revision=255033
* Update libexecinfo man page for FreeBSDEd Maste2013-08-231-9/+11
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=254698
* FreeBSD compatibility for libexecinfoEd Maste2013-08-232-0/+2
| | | | Notes: svn path=/head/; revision=254689
* Import NetBSD libexecinfo 20130822 to contribEd Maste2013-08-239-0/+935
Notes: svn path=/head/; revision=254688