aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-02-03 18:34:55 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-02-03 18:34:55 +0000
commitc1c2ab58e46f6726c3b91bb6d05bce539b888258 (patch)
tree1278603c08809fd557a23b269e866ab25484639d /gdb
parent9011945e46bf8ba4722de6cac73711863dc58b39 (diff)
downloadgdb-c1c2ab58e46f6726c3b91bb6d05bce539b888258.zip
gdb-c1c2ab58e46f6726c3b91bb6d05bce539b888258.tar.gz
gdb-c1c2ab58e46f6726c3b91bb6d05bce539b888258.tar.bz2
* arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
starts with __stack_chk_guard as stack guard symbol.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-tdep.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7e15118..ba2512d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * 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 <aburgess@broadcom.com>
* disasm.c (compare_lines): Handle the end of sequence markers
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index a9abf2d..9dfbf49 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)