gdb/arm-linux-tdep.c: Handle Thumb2 signal trampolines
authorWill Newton <will.newton@linaro.org>
Tue, 22 Jul 2014 16:10:51 +0000 (17:10 +0100)
committerWill Newton <will.newton@linaro.org>
Mon, 28 Jul 2014 14:48:23 +0000 (15:48 +0100)
commitf347ffc90a320a26394715e6f1629c856458ae15
treec6f248738a859601e3893c1c9f6f0f196472457f
parentfdb1adc6854e4240bd8ad940c57c93d48abcc040
gdb/arm-linux-tdep.c: Handle Thumb2 signal trampolines

Recent versions of glibc have assembled the signal trampoline code
as Thumb2, which causes gdb to misinterpret them and a number of
testsuite tests to fail. Educate gdb about these trampolines and
get the tests running again.

gdb/ChangeLog:

2014-07-28  Will Newton  <will.newton@linaro.org>

* arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
(THUMB2_SET_R7_SIGRETURN2): Likewise.
(THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
(THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
(THUMB2_EABI_SYSCALL): Likewise.
(thumb2_eabi_linux_sigreturn_tramp_frame): Create new
struct tramp_frame.
(thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
(arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
gdb/ChangeLog
gdb/arm-linux-tdep.c