From: Yao Qi Date: Fri, 19 Sep 2014 08:37:07 +0000 (+0800) Subject: Fix typo in thumb_in_function_epilogue_p X-Git-Tag: binutils-2_25~259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7576e5cf47c6212c0bc1613e74a4c35bc2941d7;p=external%2Fbinutils.git 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 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the bitmask. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35ecebc..0efcb72 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-09-24 Yao Qi + + * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the + bitmask. + 2014-09-22 Gary Benson * target.c (target_stop): Updated comment. 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 */ + if ((insn & 0xff00) == 0xbd00) /* pop */ found_return = 1; } else if (thumb_insn_size (insn) == 4) /* 32-bit Thumb-2 instruction */