* arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 3 Feb 2011 18:34:55 +0000 (18:34 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 3 Feb 2011 18:34:55 +0000 (18:34 +0000)
starts with __stack_chk_guard as stack guard symbol.

gdb/ChangeLog
gdb/arm-tdep.c

index 7e15118..ba2512d 100644 (file)
@@ -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
index a9abf2d..9dfbf49 100644 (file)
@@ -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)