gdbserver: Remove traces of ancient Hc handling
authorPedro Alves <palves@redhat.com>
Thu, 21 Sep 2017 15:52:33 +0000 (16:52 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 21 Sep 2017 15:52:33 +0000 (16:52 +0100)
commitf557a88ab120b75ddcc507c03d565c28e5f88c16
treee44acbd5cb926b6e1002a8ef2b926873ae169ddb
parent8fe09d7421db51bc13c9228547d63e6315bd6bd0
gdbserver: Remove traces of ancient Hc handling

Back in commit f0db101d9897 ("gdbserver: don't pick a random thread if
the current thread dies"), a couple years ago, the last references to
set_desired_thread(0) [select the Hc thread] were removed, and all the
remaining calls to set_desired_thread pass '1', meaning general
thread.  This means we can simplify set_desired_thread.

gdb/gdbserver/ChangeLog:
2017-09-21  Pedro Alves  <palves@redhat.com>

* server.c (gdb_read_memory, handle_status, process_serial_event)
(handle_serial_event, handle_target_event): Adjust to
set_desired_thread prototype change.
* target.c (set_desired_thread): Remove 'use_general' parameter
and adjust.
* target.h (set_desired_thread): Remove 'use_general' parameter.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c
gdb/gdbserver/target.c
gdb/gdbserver/target.h