]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-12-14 Yao Qi <yao@codesourcery.com>
authorYao Qi <yao@codesourcery.com>
Wed, 14 Dec 2011 07:41:06 +0000 (07:41 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 14 Dec 2011 07:41:06 +0000 (07:41 +0000)
* i386-low.c (i386_low_stopped_data_address): Initialize local
variable `control'.

gdb/gdbserver/ChangeLog
gdb/gdbserver/i386-low.c

index c1142d302b301495b5af80afad8c00f0bbb9e726..8c880634afba3c244e457050b9ac616c5706803e 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-14  Yao Qi  <yao@codesourcery.com>
+
+       * i386-low.c (i386_low_stopped_data_address): Initialize local
+       variable `control'.
+
 2011-12-13  Pedro Alves  <pedro@codesourcery.com>
 
        PR remote/13492
index 0ac37c85664311db94db20d07021e84244afadef..c86183076c78185b96d9477bc4c9459596a33310 100644 (file)
@@ -566,7 +566,7 @@ i386_low_stopped_data_address (struct i386_debug_reg_state *state,
      data breakpoint trap.  Only fetch it when necessary, to avoid an
      unnecessary extra syscall when no watchpoint triggered.  */
   int control_p = 0;
-  unsigned control;
+  unsigned control = 0;
 
   /* In non-stop/async, threads can be running while we change the
      global dr_mirror (and friends).  Say, we set a watchpoint, and