glibc/sysdeps
Will Newton 80a56cc3ee ARM: Add SystemTap probes to longjmp and setjmp.
Now the ARM port implements pointer encryption for jmpbufs, gdb needs
a SystemTap probe point in longjmp to determine the target PC of
a call to longjmp. This patch implements the probe point in longjmp
and a similar probe point in setjmp.

In order to have all the appropriate registers available to pass to the
probe this reorders the layout of jmpbuf, putting the sp and lr registers
at the start rather than the end, allowing them to be read and
written sequentially.

Tested on armv7, no new failures in the glibc testsuite and confirmed
that this fixes the gdb.base/longjmp.exp failures in the gdb testsuite.

ChangeLog:

2014-02-25  Will Newton  <will.newton@linaro.org>

	* sysdeps/arm/__longjmp.S: Include stap-probe.h.
	(__longjmp): Restore sp and lr before restoring callee
	saved registers.  Add longjmp and longjmp_target
	SystemTap probe point.
	* sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
	* sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
	Define to zero to match jmpbuf layout.
	* sysdeps/arm/setjmp.S: Include stap-probe.h.
	(__sigsetjmp): Save sp and lr before saving callee
	saved registers.  Add setjmp SystemTap probe point.
2014-02-25 10:07:04 +00:00
..
aarch64 soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
alpha soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
arm ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
generic Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
gnu Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
i386 Move tests of clog10 from libm-test.inc to auto-libm-test-in. 2014-02-19 14:26:29 +00:00
ia64 ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
ieee754 BZ #16447: Fix ldbl-128 expl implementation. 2014-02-11 13:47:47 +01:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
mach Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
microblaze [MicroBlaze]: Move MicroBlaze from ports to sysdeps. 2014-02-17 11:08:21 +10:00
mips Update MIPS math-tests.h for GCC 4.9 using soft-fp. 2014-02-13 00:46:45 +00:00
posix Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
powerpc Allow sys/auxv.h to be used from the testsuite on powerpc and sparc. 2014-02-21 00:24:03 -07:00
pthread Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s390 S/390: Regenerate ULPs. 2014-02-25 09:38:00 +01:00
sh soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
sparc Allow sys/auxv.h to be used from the testsuite on powerpc and sparc. 2014-02-21 00:24:03 -07:00
tile soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
unix Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Generate .test-result files for tests with special rules. 2014-02-21 21:48:08 +00:00
x86_64 Move tests of clog10 from libm-test.inc to auto-libm-test-in. 2014-02-19 14:26:29 +00:00