glibc/sysdeps/arm
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
..
armv6 Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
armv6t2 Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
armv7 Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
bits ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
include/bits ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
nptl Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
soft-fp soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
sys Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
__longjmp.S ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
abi-note.S Fix whitespace in ARM files to allow move. 2014-02-08 01:52:38 +00:00
add_n.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
addmul_1.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_assert.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_atexit.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_errno_addr.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_lcsts.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_localeconv.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_math.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_mb_cur_max.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_memclr.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_memcpy.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_memmove.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_memset.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_sighandlers.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_unwind_cpp_pr1.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
arm-features.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
arm-mcount.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
backtrace.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
bsd-_setjmp.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
bsd-setjmp.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
configure Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
configure.ac Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
crti.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
crtn.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-irel.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-lookupcfg.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-machine.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-sysdep.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-tls.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-tlsdesc.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-tlsdesc.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-trampoline.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fclrexcpt.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fedisblxcpt.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
feenablxcpt.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fegetenv.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fegetexcept.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fegetround.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
feholdexcpt.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fesetenv.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fesetround.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
feupdateenv.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fgetexcptflg.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
find_exidx.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fpu_control.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fraiseexcpt.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
frame.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
framestate.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fsetexcptflg.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ftestexcept.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
gcc-compat.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
gccframe.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
get-rounding-mode.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
gmp-mparam.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
Implies Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
jmpbuf-unwind.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ldsodefs.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
libc-tls.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
libm-test-ulps Update ARM ulps for VFPv4 (bug 16600). 2014-02-21 17:21:13 +00:00
machine-gmon.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
Makefile Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
math-tests.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
memcpy.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
memmove.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
memset.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
memusage.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
preconfigure Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
preconfigure.ac Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
rtld-global-offsets.sym Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
s_fma.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
s_fmaf.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setfpucw.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setjmp.S ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
shlib-versions Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sotruss-lib.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
stackinfo.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
start.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
static-stubs.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
strlen.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sub_n.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
submul_1.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sysdep.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
test-fpucw.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
tls-macros.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
tlsdesc.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
tlsdesc.sym Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
tst-audit.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
unwind-dw2-fde-glibc.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
unwind-pe.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
Versions Move arm from ports to libc. 2014-02-08 01:49:39 +00:00