Re: [PATCH] libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC

2021-08-13 Thread Raphael M Zinsly via Gcc-patches
Hi Segher, thank you for the review, I'll work on the issues you pointed. On 13/08/2021 13:04, Segher Boessenkool wrote: Hi! On Fri, Aug 13, 2021 at 10:46:37AM -0300, Raphael Moreira Zinsly wrote: * config/rs6000/linux-unwind.h (struct rt_sigframe): Move it to outside of get_re

Re: [PATCH] libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC

2021-08-13 Thread Segher Boessenkool
Hi! On Fri, Aug 13, 2021 at 10:46:37AM -0300, Raphael Moreira Zinsly wrote: > * config/rs6000/linux-unwind.h (struct rt_sigframe): Move it to > outside of get_regs() in order to use it in another function. Say you do this twice, once for __powerpc64__, once for !__powerpc64__? >

[PATCH] libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC

2021-08-13 Thread Raphael Moreira Zinsly via Gcc-patches
This is followup to this RFC: https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573954.html ---8<--- 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, th