From 80a56cc3ee45d4a2a1c3ec5e67ff359a7b380fb6 Mon Sep 17 00:00:00 2001 From: Will Newton Date: Mon, 27 Jan 2014 09:01:03 +0000 Subject: 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 * 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. --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 5789022a6c..caa89170d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2014-02-25 Will Newton + + * 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-24 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerate. -- cgit 1.4.1