diff options
author | Yao Qi <yao@codesourcery.com> | 2014-09-19 16:37:07 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-09-24 20:55:01 +0800 |
commit | b7576e5cf47c6212c0bc1613e74a4c35bc2941d7 (patch) | |
tree | c6804caa3a977ba6ad0a18a79c7308eb08178303 /gdb/arm-tdep.c | |
parent | 00cac886aa4ddbd05105f6aa82280ef8f7f9dce6 (diff) | |
download | gdb-b7576e5cf47c6212c0bc1613e74a4c35bc2941d7.zip gdb-b7576e5cf47c6212c0bc1613e74a4c35bc2941d7.tar.gz gdb-b7576e5cf47c6212c0bc1613e74a4c35bc2941d7.tar.bz2 |
Fix typo in thumb_in_function_epilogue_p
This patch fixes a typo in the bit mask I've made in my previous code
refactor. If PC is in the register list, the bit 8 is one, so bit
mask 0xff00 should be used. Current condition is a constant false.
gdb:
2014-09-24 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
bitmask.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 5cdfc5b..e2559ec 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3273,7 +3273,7 @@ thumb_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc) found_return = 1; else if (thumb_instruction_restores_sp (insn)) { - if ((insn & 0xfe00) == 0xbd00) /* pop <registers, PC> */ + if ((insn & 0xff00) == 0xbd00) /* pop <registers, PC> */ found_return = 1; } else if (thumb_insn_size (insn) == 4) /* 32-bit Thumb-2 instruction */ |