Don't scan prologue past epilogue
authorYao Qi <yao@codesourcery.com>
Fri, 28 Nov 2014 07:19:12 +0000 (15:19 +0800)
committerYao Qi <yao@codesourcery.com>
Fri, 12 Dec 2014 00:46:25 +0000 (08:46 +0800)
commitf303bc3e6ca29f0413376e38164dc5cdc0893d4b
treecc07c14344717252229db9bba5ca43d38b8b1885
parent65840e31a7a7cd64c81ac47bcb17319536ce3ba2
Don't scan prologue past epilogue

This patch is to stop prologue analysis past epilogue in for arm mode,
while we've already had done the same to thumb mode (see
thumb_instruction_restores_sp).  This is useful to parse functions
with empty body (epilogue follows prologue).

gdb:

2014-12-12  Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (arm_instruction_restores_sp): New function.
(arm_analyze_prologue): Call arm_instruction_restores_sp.
(arm_in_function_epilogue_p): Move code to
arm_instruction_restores_sp.
gdb/ChangeLog
gdb/arm-tdep.c