aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-07-01 15:36:44 +0800
committerYao Qi <yao@codesourcery.com>2014-07-11 21:33:50 +0800
commit1db01f22f58cc01768dc921a7443a1bad4e48eb5 (patch)
treef75b3763a6917069845e9019f3e7dec4eae17a14 /gdb/parse.c
parent3116063bd617de56fbc3bad046a692b1fb363a9d (diff)
downloadgdb-1db01f22f58cc01768dc921a7443a1bad4e48eb5.zip
gdb-1db01f22f58cc01768dc921a7443a1bad4e48eb5.tar.gz
gdb-1db01f22f58cc01768dc921a7443a1bad4e48eb5.tar.bz2
Restrict matching add/sub sp, #imm
Currently, GDB matches both add/sub sp, #imm in prologue and epilogue, which is not very precise. On the instruction level, the immediate number in both instruction can't be negative, so 'sub sp, #imm' only appears in prologue while 'add sp, #imm' only appears in epilogue. Note that on assembly level, we can write 'add sp, -8', but gas will translate to 'sub sp, 8' instruction. This patch is to only match 'sub sp, #imm' in prologue and match 'add sp, #immm' in epilogue. It paves the way for the following patch. gdb: 2014-07-11 Yao Qi <yao@codesourcery.com> * arm-tdep.c (thumb_analyze_prologue): Don't match instruction 'add sp, #imm'. (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
Diffstat (limited to 'gdb/parse.c')
0 files changed, 0 insertions, 0 deletions