[PATCH v2] libgcc: fix backtrace fallback on PowerPC Big-endian. [PR103004]

2021-11-11 Thread Raphael Moreira Zinsly via Gcc-patches
Changes since v1: - Removed -Wmissing-prototypes fix. - Fixed formatting of Changelog and patch. --->8--- At the end of the backtrace stream _Unwind_Find_FDE() may not be able to find the frame unwind info and will later call the backtrace fallback instead of finishing. This occur

[PATCH] libgcc: fix backtrace fallback on PowerPC Big-endian. [PR103004]

2021-11-10 Thread Raphael Moreira Zinsly via Gcc-patches
At the end of the backtrace stream _Unwind_Find_FDE() may not be able to find the frame unwind info and will later call the backtrace fallback instead of finishing. This occurs when using an old libc on ppc64 due to dl_iterate_phdr() not being able to set the fde in the last trace. When this occurs

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

2021-10-05 Thread Raphael Moreira Zinsly via Gcc-patches
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_sig

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

2021-08-26 Thread Raphael Moreira Zinsly via Gcc-patches
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_sig

[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

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

2021-06-29 Thread Raphael Moreira Zinsly via Gcc-patches
Hi all, There is a patch proposed on glibc that removes the powerpc backtrace implementation [1]. As discussed in that thread, it would be helpful to have a backchain fallback on libgcc before removing it. This patch is moving part of that code to libgcc in order to do that. Is it acceptable to ha