diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-01-17 13:31:47 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-01-17 13:31:47 +0000 |
commit | 1eeddc5854b9fdf5b909821fa53e08fbb9bbfc0a (patch) | |
tree | 25fb04836b51f705ea46a5a2cad8e6830e47e96b /sysdeps/hppa | |
parent | 207a72e2988c6d6343f50fe0128eb4fc4edfdd15 (diff) | |
download | glibc-1eeddc5854b9fdf5b909821fa53e08fbb9bbfc0a.zip glibc-1eeddc5854b9fdf5b909821fa53e08fbb9bbfc0a.tar.gz glibc-1eeddc5854b9fdf5b909821fa53e08fbb9bbfc0a.tar.bz2 |
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
<https://sourceware.org/ml/libc-alpha/2018-01/msg00564.html> that this
does fix the backtrace test failures for hppa.
[BZ #22719]
* sysdeps/hppa/backtrace.c: New file.
Diffstat (limited to 'sysdeps/hppa')
-rw-r--r-- | sysdeps/hppa/backtrace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/hppa/backtrace.c b/sysdeps/hppa/backtrace.c new file mode 100644 index 0000000..27ce597 --- /dev/null +++ b/sysdeps/hppa/backtrace.c @@ -0,0 +1 @@ +#include <sysdeps/x86_64/backtrace.c> |