diff options
author | Yao Qi <yao@codesourcery.com> | 2011-12-14 07:41:06 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-12-14 07:41:06 +0000 |
commit | d54d1edf1abe6b09646ba3f8d8b38002acb60802 (patch) | |
tree | 79c2802e01b7294575eec7acc8d06509f79a5ae3 /gdb/gdbserver | |
parent | 93995a1655186e5ddcdcf699c7e43a9979e3bf15 (diff) | |
download | gdb-d54d1edf1abe6b09646ba3f8d8b38002acb60802.zip gdb-d54d1edf1abe6b09646ba3f8d8b38002acb60802.tar.gz gdb-d54d1edf1abe6b09646ba3f8d8b38002acb60802.tar.bz2 |
2011-12-14 Yao Qi <yao@codesourcery.com>
* i386-low.c (i386_low_stopped_data_address): Initialize local
variable `control'.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/i386-low.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c1142d3..8c88063 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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 diff --git a/gdb/gdbserver/i386-low.c b/gdb/gdbserver/i386-low.c index 0ac37c85..c861830 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 |