From: Joseph Myers Date: Wed, 17 Jan 2018 13:31:47 +0000 (+0000) Subject: Fix backtrace for hppa (bug 22719). X-Git-Tag: glibc-2.27~125 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1eeddc5854b9fdf5b909821fa53e08fbb9bbfc0a;p=glibc.git Fix backtrace for hppa (bug 22719). The only architecture in glibc that uses the generic debug/backtrace.c is hppa. The debug/tst-backtrace* tests fail for hppa, so in fact the generic debug/backtrace.c is not functional anywhere. Instead, the x86_64 version is a reasonably generic version that uses _Unwind_Backtrace from libgcc to backtrace using unwind info, and is used by several architectures. This patch adds hppa to the architectures using it (leaving open the possibility of a subsequent cleanup for 2.28 of moving the x86_64 version to debug/backtrace.c, and removing all the frame.h files that are now unused). Reported by Adhemerval in that this does fix the backtrace test failures for hppa. [BZ #22719] * sysdeps/hppa/backtrace.c: New file. --- diff --git a/ChangeLog b/ChangeLog index aed3cdf867..d16ebf1cca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-01-17 Joseph Myers + + [BZ #22719] + * sysdeps/hppa/backtrace.c: New file. + 2018-01-17 H.J. Lu [BZ #22715] diff --git a/sysdeps/hppa/backtrace.c b/sysdeps/hppa/backtrace.c new file mode 100644 index 0000000000..27ce597b39 --- /dev/null +++ b/sysdeps/hppa/backtrace.c @@ -0,0 +1 @@ +#include