diff options
author | Pedro Alves <palves@redhat.com> | 2017-09-21 16:52:33 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-09-21 16:52:33 +0100 |
commit | f557a88ab120b75ddcc507c03d565c28e5f88c16 (patch) | |
tree | e44acbd5cb926b6e1002a8ef2b926873ae169ddb /gdb/gdbserver/target.h | |
parent | 8fe09d7421db51bc13c9228547d63e6315bd6bd0 (diff) | |
download | gdb-f557a88ab120b75ddcc507c03d565c28e5f88c16.zip gdb-f557a88ab120b75ddcc507c03d565c28e5f88c16.tar.gz gdb-f557a88ab120b75ddcc507c03d565c28e5f88c16.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index be89258..91cbde1 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -698,7 +698,7 @@ int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len); int write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len); -int set_desired_thread (int id); +int set_desired_thread (); const char *target_pid_to_str (ptid_t); |