aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-11-14 12:10:59 +0000
committerPierre Muller <muller@sourceware.org>2010-11-14 12:10:59 +0000
commit73c964d623bc742a965522ef9591294588d50452 (patch)
tree34530bcfdf660a0188e8d91860c8bf3d71ac71e6 /gdb
parentef13ebfec9dfd5841c174003abe0f64a5db5f6c8 (diff)
downloadgdb-73c964d623bc742a965522ef9591294588d50452.zip
gdb-73c964d623bc742a965522ef9591294588d50452.tar.gz
gdb-73c964d623bc742a965522ef9591294588d50452.tar.bz2
* arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
possible used of uninitialized variable.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-tdep.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b2838d9..7669965 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 2df96cd..7c24d30 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)
{