diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-03-21 17:25:30 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-03-21 17:25:30 +0000 |
commit | ffec7b2740bd6377b054438779228989c61ea82c (patch) | |
tree | 9cd68fb552c47f2d61284619e76b1d362e2a1f77 /sysdeps/sh | |
parent | d0c5d731af73fcd787fb398a34e2431bcb686bd3 (diff) | |
download | glibc-ffec7b2740bd6377b054438779228989c61ea82c.tar.gz glibc-ffec7b2740bd6377b054438779228989c61ea82c.tar.xz glibc-ffec7b2740bd6377b054438779228989c61ea82c.zip |
Use x86_64 backtrace as generic version.
No glibc configuration uses the present debug/backtrace.c, whereas several #include the x86_64 version. The x86_64 version is effectively a generic one (using _Unwind_Backtrace from libgcc, which works much more reliably than the built-in functions used by debug/backtrace.c). This patch moves it to debug/backtrace.c and removes all the #includes of the x86_64 version from other architectures which are no longer required. I do not know whether all the other architecture-specific backtrace implementations that are based on _Unwind_Backtrace are required, or whether, where their differences from the generic version do something useful, suitable hooks could be added to the generic version to reduce the duplication involved. Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by this patch. * sysdeps/x86_64/backtrace.c: Move to .... * debug/backtrace.c: ... here. * sysdeps/aarch64/backtrace.c: Remove file. * sysdeps/alpha/backtrace.c: Likewise. * sysdeps/hppa/backtrace.c: Likewise. * sysdeps/ia64/backtrace.c: Likewise. * sysdeps/mips/backtrace.c: Likewise. * sysdeps/nios2/backtrace.c: Likewise. * sysdeps/riscv/backtrace.c: Likewise. * sysdeps/sh/backtrace.c: Likewise. * sysdeps/tile/backtrace.c: Likewise.
Diffstat (limited to 'sysdeps/sh')
-rw-r--r-- | sysdeps/sh/backtrace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sysdeps/sh/backtrace.c b/sysdeps/sh/backtrace.c deleted file mode 100644 index 4f3eafb09c..0000000000 --- a/sysdeps/sh/backtrace.c +++ /dev/null @@ -1 +0,0 @@ -#include "../x86_64/backtrace.c" |