diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b2838d90e4..7669965e1e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-11-14 Pierre Muller + + * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid + possible used of uninitialized variable. + 2010-11-12 Nathan Froyd * rs6000-tdep.c (bfd_uses_spe_extensions): New function. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 2df96cd0e6..7c24d306e2 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -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) {