Skip 'bx reg' trampoline on arm-none-eabi
authorYao Qi <yao@codesourcery.com>
Fri, 30 May 2014 07:51:45 +0000 (15:51 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 24 Jun 2014 01:30:24 +0000 (09:30 +0800)
commit80d8d3908b7ef70c325fcdfb455bf5dbc2c68e16
tree68779827803470f7675ccf8fed2564e7b99b3156
parent03e46fbd3584d08285cb80e5ca235c48d2fa849c
Skip 'bx reg' trampoline on arm-none-eabi

After this patch
<https://gcc.gnu.org/ml/gcc-patches/2005-01/msg00813.html> applied to
GCC, a new trampoline is generated but GDB doesn't recognize it.  This
patch is to teach GDB to understand this trampoline.  See details
about this trampoline and the heuristics in the comments.

gdb:

2014-06-24  Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (arm_skip_bx_reg): New function.
(arm_skip_stub): Call arm_skip_bx_reg.
gdb/ChangeLog
gdb/arm-tdep.c