Commit Graph

43 Commits

Author SHA1 Message Date
riastradh 4604ab506a */shlib_version: Ensure a boring line between RCS id and all else.
This makes cherry-picks easier by avoiding conflicts between the RCS
id and the interesting changes.
2023-09-06 12:48:15 +00:00
rin 6c2fafb153 libexecinfo: whitespace, missing RCSID, no binary changes 2023-08-23 12:24:59 +00:00
skrll 44889fb922 Decode function descriptors (aka plabels) on hppa to fix backtrace.
PR/56881: hppa: backtrace_symbols() delivers bogus results for some dynloaded functions
2022-06-25 06:51:37 +00:00
skrll db40f7209a Oops... fix SYMTAB_DEBUG build 2022-06-23 09:58:25 +00:00
skrll 28227ae2d9 Define and use a DPRINTF macro 2022-06-23 09:53:49 +00:00
skrll d5f19fad45 Trailing whitespace 2022-06-23 09:48:00 +00:00
christos 1abb353bae 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
2020-07-26 15:53:05 +00:00
mgorny ac78ffd6ff Fix using gcc's unwind.h 2020-01-22 16:07:40 +00:00
mgorny 26a48dd100 Install gcc's unwind.h instead of libexecinfo's
The prototypes in libexecinfo's unwind.h do not match those commonly
used (e.g. by gcc, clang, GNU libunwind, LLVM libunwind...), causing
C++ programs to fail to build on type mismatches (e.g. compiler-rt,
libc++abi).  Rather than providing our own header, reuse the one
included in gcc.
2020-01-22 15:10:31 +00:00
mrg 7d08015811 make the backtrace()'s tracer() return _URC_FOREIGN_EXCEPTION_CAUGHT
when the array is full.  it won't be able to do any more work if so,
and avoids infinite loops in unwinding as seen on arm64.

XXX:  lack of signal support here means that backtrace() is useless
XXX:  from a signal handler, such as attempting to display the stack
XXX:  when handling a SIGSEGV.
2019-01-30 22:46:49 +00:00
abhinav ee4c697d62 Add rest of the functions from the SYNOPSIS section to the NAME section 2017-10-22 14:07:03 +00:00
christos 285444fdfa make this standalone. 2017-06-30 21:39:43 +00:00
christos b91b113b53 flesh out _Unwind_Exception, rust needs it. 2016-12-19 01:24:40 +00:00
christos b293c8a9d7 Add unwind action type and constants 2016-12-02 19:25:19 +00:00
pgoyette c16bd04c08 Fix markup .Dv --> .Dq
(Thanks, wiz!)
2016-10-31 07:37:10 +00:00
pgoyette 34a71bb24b Typo 2016-10-31 01:31:25 +00:00
christos 5d9808ec41 Don't subtract base if not pie. 2016-04-20 14:00:16 +00:00
christos 47c9654d15 make this work with pie binaries (subtract dli_fbase from addresses). 2016-04-11 15:30:18 +00:00
wiz ee3b5f656a Fix typo, from FreeBSD. 2015-12-26 10:34:36 +00:00
wiz 61125159a3 Correctly document backtrace_symbols_fd_fmt.
From Henning Petersen in PR 50407.

Bump date.
2015-11-05 08:29:42 +00:00
christos e09cabee76 args are flipped. 2015-09-25 19:27:31 +00:00
christos a94376db50 use provide KERN_PROC_PATHNAME in PROC_ARGS. 2015-09-25 19:18:28 +00:00
joerg 145c684320 Don't overwrite the real unwind.h if it is present. 2014-10-24 22:42:16 +00:00
christos e25713fc10 don't kill the existing includes 2014-10-22 19:29:31 +00:00
christos 98d839c6b3 Make unwind.h installable. 2014-10-22 16:30:21 +00:00
joerg 353aedd819 Make EHABI optional. 2014-05-06 16:02:10 +00:00
joerg 47a96e3a4d _Unwind_GetLanguageSpecificData is supposed to return a _Unwind_Ptr.
This makes a difference on M68K as it uses a different register for
integer vs pointer values.
2014-03-24 21:26:01 +00:00
christos bb5309eeb0 another libelf instance 2014-03-09 21:37:37 +00:00
christos 9e14bd8cd4 From Ed Maste:
libexecinfo: Include terminating null in byte count

  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.
2013-11-21 16:02:21 +00:00
christos 3ff21a6f59 print an error if we failed to allocate. 2013-09-03 08:44:45 +00:00
christos efbe1fcbf4 add stdint.h for FreeBSD compat. 2013-08-29 15:01:57 +00:00
christos e6ada316ce use sysctl to find the pathname argv[0] if available (from FreeBSD via
Ed Maste)
2013-08-29 14:58:56 +00:00
christos 99f3a4ae2d fix typo (Sergey Kandaurov) 2013-08-22 17:08:43 +00:00
matt 56616ffc4c earm -> earm* 2013-04-30 01:41:01 +00:00
matt 25c44086c9 Changes for MKCOMPAT for earm. 2013-04-27 06:24:22 +00:00
matt 8227b1ba63 When building for earm, make sure to build unwind_arm_ehabi_stub.* 2013-04-25 14:48:09 +00:00
matt 9e528c03eb libgcc/libcompiler_rt inlines some functions needed by libexecinfo when
using ARM EHABI.  Provide uninlined versions for libexecinfo.
from skrll@
2013-04-25 14:47:30 +00:00
christos ac9e945799 fix cleanup on error 2012-07-09 03:11:59 +00:00
christos 3ffb571495 mention .Nx 7.0 2012-06-10 00:24:36 +00:00
christos 394bbc132e PR/46571: Yui NARUSE: execinfo.h should include stddef.h 2012-06-09 21:22:17 +00:00
christos 26fc8e3271 remove unrelated fragment. 2012-05-27 13:25:28 +00:00
wiz 32778414ba Sort sections.
Remove dot at end of Nd
Sort SEE ALSO.
Punctuation fixes.
Bump date to import date.
Comment out a partial sentence.
2012-05-27 12:03:02 +00:00
christos 83d64dcffd Add a similar to linux backtrace_* and execinfo.h family of functions 2012-05-26 22:02:29 +00:00