From: Ulrich Weigand Date: Thu, 3 Feb 2011 18:34:55 +0000 (+0000) Subject: * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that X-Git-Tag: cgen-snapshot-20110301~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1c2ab58e46f6726c3b91bb6d05bce539b888258;p=thirdparty%2Fbinutils-gdb.git * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that starts with __stack_chk_guard as stack guard symbol. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7e1511849ac..ba2512df146 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-02-03 Ulrich Weigand + + * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that + starts with __stack_chk_guard as stack guard symbol. + 2011-02-03 Andrew Burgess * disasm.c (compare_lines): Handle the end of sequence markers diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index a9abf2d0a49..9dfbf499e8b 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1296,7 +1296,8 @@ arm_skip_stack_protector(CORE_ADDR pc, struct gdbarch *gdbarch) instruction sequence is not for stack protector. If symbol is removed, we conservatively think this sequence is for stack protector. */ if (stack_chk_guard - && strcmp (SYMBOL_LINKAGE_NAME(stack_chk_guard), "__stack_chk_guard")) + && strncmp (SYMBOL_LINKAGE_NAME (stack_chk_guard), "__stack_chk_guard", + strlen ("__stack_chk_guard")) != 0) return pc; if (is_thumb)