glibc/sysdeps/riscv
Joseph Myers ffec7b2740 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.
2018-03-21 17:25:30 +00:00
..
bits RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
nofpu RISC-V: Add ABI Lists 2018-01-29 10:37:28 -08:00
nptl hurd: add gscope support 2018-03-11 13:06:33 +01:00
rv64 RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
rvd RISC-V: fmax/fmin: Handle signalling NaNs correctly. 2018-02-22 14:31:54 -05:00
rvf RISC-V: fmax/fmin: Handle signalling NaNs correctly. 2018-02-22 14:31:54 -05:00
sys RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
__longjmp.S RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
bsd-_setjmp.c RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
bsd-setjmp.c RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
configure RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
configure.ac RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
dl-machine.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
dl-tls.h RISC-V: Thread-Local Storage Support 2018-01-29 10:25:58 -08:00
dl-trampoline.S RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
e_sqrtl.c RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
fpu_control.h RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
gccframe.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
Implies RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
jmpbuf-offsets.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
jmpbuf-unwind.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
ldsodefs.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
libc-tls.c RISC-V: Thread-Local Storage Support 2018-01-29 10:25:58 -08:00
linkmap.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
machine-gmon.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
Makefile RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
math-tests.h RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
memusage.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
preconfigure RISC-V: Build Infastructure 2018-01-29 10:43:15 -08:00
setjmp.S RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
sfp-machine.h RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
sotruss-lib.c RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
stackinfo.h RISC-V: Thread-Local Storage Support 2018-01-29 10:25:58 -08:00
start.S RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00
tininess.h RISC-V: Generic <math.h> and soft-fp Routines 2018-01-29 10:26:35 -08:00
tls-macros.h RISC-V: Do not initialize $gp in TLS macros. 2018-02-22 14:28:47 -05:00
tst-audit.h RISC-V: ABI Implementation 2018-01-29 10:25:29 -08:00