diff options
author | Raphael Moreira Zinsly <rzinsly@linux.ibm.com> | 2021-10-05 15:32:52 -0300 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2021-10-14 20:00:44 +0000 |
commit | b7561b5d2443f1d5f54f5177f0fb1a13c4205856 (patch) | |
tree | b146d395c0cf2844e5f122eae30920805ea723ea /libgcc/siditi-object.mk | |
parent | b47490c572c5938f887b54240af6096a7c90f640 (diff) | |
download | gcc-b7561b5d2443f1d5f54f5177f0fb1a13c4205856.tar.gz |
libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC
Without dwarf2 unwind tables available _Unwind_Backtrace() is not
able to return the full backtrace.
This patch adds a fallback function on powerpc to get the backtrace
by doing a backchain, this code was originally at glibc.
libgcc/ChangeLog:
* config/rs6000/linux-unwind.h (struct rt_sigframe): Move it to
outside of get_regs() in order to use it in another function, this
is done twice: for __powerpc64__ and for !__powerpc64__.
(struct trace_arg): New struct.
(struct layout): New struct.
(ppc_backchain_fallback): New function.
* unwind.inc (_Unwind_Backtrace): Look for _URC_NORMAL_STOP code
state and call MD_BACKCHAIN_FALLBACK.
gcc/testsuite/ChangeLog:
* gcc.target/powerpc/unwind-backchain.c: New test.
Diffstat (limited to 'libgcc/siditi-object.mk')
0 files changed, 0 insertions, 0 deletions