GDBserver: clean up 'cont_thread' handling
authorPedro Alves <palves@redhat.com>
Wed, 12 Nov 2014 11:17:40 +0000 (11:17 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 12 Nov 2014 11:30:49 +0000 (11:30 +0000)
commit40e91bc71f7993f2064cec4ffd007f2c814a1b29
treef8e38f3d8b912934c1076c3a63c7646a7ff598b7
parentc2c118cfe13264f5638f9e3924c7fd05a293ad40
GDBserver: clean up 'cont_thread' handling

As no place in the backends check cont_thread anymore, we can stop
setting and clearing it in places that resume the target and wait for
events.  Instead simply clear it whenever a new GDB connects.

gdb/gdbserver/
2014-11-12  Pedro Alves  <palves@redhat.com>

* server.c (cont_thread): Update comment.
(start_inferior, attach_inferior): No longer clear cont_thread.
(handle_v_cont): No longer set cont_thread.
(captured_main): Clear cont_thread each time a GDB connects.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c