This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Implement SH backtrace using IA64 version


On SH, the default debug/backtrace.c using GCC built-in functions
doesn't work, but the IA64 implementation works as-is, as on x86_64,
provided you enable unwind info (which is generally needed for
reliable backtraces on most architectures nowadays; the SH ABI is
among those that doesn't allow reliable backtraces just using a frame
pointer).  This patch accordingly makes SH use the IA64
implementation, like x86_64.

(With this patch, it looks like SPARC 32-bit will be the only libc
architecture using the default debug/backtrace.c.)

2011-12-02  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/sh/backtrace.c: New.

diff --git a/sysdeps/sh/backtrace.c b/sysdeps/sh/backtrace.c
new file mode 100644
index 0000000..ee7bf61
--- /dev/null
+++ b/sysdeps/sh/backtrace.c
@@ -0,0 +1 @@
+#include "../ia64/backtrace.c"

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]