2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
authorAndreas Tobler <andreast@sourceware.org>
Wed, 19 Dec 2012 20:57:55 +0000 (20:57 +0000)
committerAndreas Tobler <andreast@sourceware.org>
Wed, 19 Dec 2012 20:57:55 +0000 (20:57 +0000)
        * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
        branch_bp to keep gcc happy.

gdb/ChangeLog
gdb/mips-tdep.c

index 20518f7ea0c6f38e0d6c4345ea053726f433676c..ff43287105ab11234d4f9098abe8e9238f0108f4 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-19  Andreas Tobler  <andreast@neon.andreas.nets>
+
+       * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
+       branch_bp to keep gcc happy.
+
 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
 
        * gdbarch.sh (copyright): Update copyright years.
index 8140f237320bd5271b6aa0fd1fca85256a35edc3..792ae6ef7f98d2fb5c3eaf4a5a61376cad8cffe0 100644 (file)
@@ -3796,7 +3796,8 @@ micromips_deal_with_atomic_sequence (struct gdbarch *gdbarch,
   const int atomic_sequence_length = 16; /* Instruction sequence length.  */
   int last_breakpoint = 0; /* Defaults to 0 (no breakpoints placed).  */
   CORE_ADDR breaks[2] = {-1, -1};
-  CORE_ADDR branch_bp; /* Breakpoint at branch instruction's destination.  */
+  CORE_ADDR branch_bp = 0; /* Breakpoint at branch instruction's
+                             destination.  */
   CORE_ADDR loc = pc;
   int sc_found = 0;
   ULONGEST insn;