aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-07-02 14:45:12 +0800
committerYao Qi <yao@codesourcery.com>2014-07-11 21:33:55 +0800
commit540314bdd87c7478d21b44dd4856d937bcc1479b (patch)
tree37fc171ec790695eab48bbfa47e1d6c4c7531545 /gdb/parse.c
parent1db01f22f58cc01768dc921a7443a1bad4e48eb5 (diff)
downloadgdb-540314bdd87c7478d21b44dd4856d937bcc1479b.zip
gdb-540314bdd87c7478d21b44dd4856d937bcc1479b.tar.gz
gdb-540314bdd87c7478d21b44dd4856d937bcc1479b.tar.bz2
Match instruction adjusts SP in thumb
This is a refactor patch, that moves matching instructions adjusting SP into a new function, thumb_instruction_restores_sp. The second call to thumb_instruction_restores_sp in thumb_in_function_epilogue_p is a little different from the original. The original code matches 'POP <registers> without PC', but thumb_in_function_epilogue_p matches 'POP <registers> (with and without PC)'. However, GDB found one instruction about return and is scanning the previous instruction, which should be an instruction about return too, so the code change doesn't affect the functionality. gdb: 2014-07-11 Yao Qi <yao@codesourcery.com> * arm-tdep.c (thumb_instruction_restores_sp): New function. (thumb_in_function_epilogue_p): Call thumb_instruction_restores_sp.
Diffstat (limited to 'gdb/parse.c')
0 files changed, 0 insertions, 0 deletions