From: Yao Qi Date: Wed, 14 Dec 2011 07:41:06 +0000 (+0000) Subject: 2011-12-14 Yao Qi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d54d1edf1abe6b09646ba3f8d8b38002acb60802;p=binutils-gdb.git 2011-12-14 Yao Qi * i386-low.c (i386_low_stopped_data_address): Initialize local variable `control'. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c1142d302b3..8c880634afb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2011-12-14 Yao Qi + + * i386-low.c (i386_low_stopped_data_address): Initialize local + variable `control'. + 2011-12-13 Pedro Alves PR remote/13492 diff --git a/gdb/gdbserver/i386-low.c b/gdb/gdbserver/i386-low.c index 0ac37c85664..c86183076c7 100644 --- a/gdb/gdbserver/i386-low.c +++ b/gdb/gdbserver/i386-low.c @@ -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