diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-02-03 18:34:53 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-02-03 18:34:53 +0000 |
commit | 507759f37262afc670bbf18225300b11f8b116f5 (patch) | |
tree | ae109ded117d989219dd6b1a46af265f0d5e9c0e /gdb/arm-tdep.c | |
parent | 4bec1ce565b273a7df3bb2a776b4e209636cc952 (diff) | |
download | gdb-507759f37262afc670bbf18225300b11f8b116f5.tar.gz |
* arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
starts with __stack_chk_guard as stack guard symbol.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |