]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
authorPierre Muller <muller@sourceware.org>
Sun, 14 Nov 2010 12:10:59 +0000 (12:10 +0000)
committerPierre Muller <muller@sourceware.org>
Sun, 14 Nov 2010 12:10:59 +0000 (12:10 +0000)
possible used of uninitialized variable.

gdb/ChangeLog
gdb/arm-tdep.c

index b2838d90e49cad0110f0a4bb5e7f46ba689c028c..7669965e1ed1d743c12f3fd3086f6e3c38ab12d5 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
+       possible used of uninitialized variable.
+
 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
 
        * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
index 2df96cd0e62ff766a87e307a966ad44b12a4e11b..7c24d306e2d6d3792612cc42f35fb6cee5930af3 100644 (file)
@@ -2233,6 +2233,7 @@ arm_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc)
   if (pc < func_start + 4)
     return 0;
 
+  found_stack_adjust = 0;
   insn = read_memory_unsigned_integer (pc - 4, 4, byte_order_for_code);
   if (bits (insn, 28, 31) != INST_NV)
     {