diff options
author | Pedro Alves <pedro@palves.net> | 2023-05-09 10:18:09 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2024-05-08 00:39:56 +0100 |
commit | f99b2890dd5f073cb10bca6105caa0805c913d8a (patch) | |
tree | dd213442e07233a4dd8d28b01fedc50ed42de072 /gdbserver | |
parent | b67852992bcd4e14af9f1b6eff3b8500308352c9 (diff) | |
download | fsf-binutils-gdb-f99b2890dd5f073cb10bca6105caa0805c913d8a.zip fsf-binutils-gdb-f99b2890dd5f073cb10bca6105caa0805c913d8a.tar.gz fsf-binutils-gdb-f99b2890dd5f073cb10bca6105caa0805c913d8a.tar.bz2 |
Windows gdb+gdbserver: Eliminate windows_process_info::thread_rec
After the previous patches, thread_rec is no longer called anywhere.
Delete it.
Change-Id: Ib14e5807fc427e1c3c4a393a9ea7b36b6047a2d7
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/win32-low.cc | 15 | ||||
-rw-r--r-- | gdbserver/win32-low.h | 3 |
2 files changed, 0 insertions, 18 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index b693da5..0d67cd9 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -150,21 +150,6 @@ gdbserver_windows_process::find_thread (ptid_t ptid) return (windows_thread_info *) thread_target_data (thread); } -/* See nat/windows-nat.h. */ - -windows_thread_info * -gdbserver_windows_process::thread_rec - (ptid_t ptid, thread_disposition_type disposition) -{ - thread_info *thread = find_thread_ptid (ptid); - if (thread == NULL) - return NULL; - - windows_thread_info *th = (windows_thread_info *) thread_target_data (thread); - win32_require_context (th); - return th; -} - /* Add a thread to the thread list. */ static windows_thread_info * child_add_thread (DWORD pid, DWORD tid, HANDLE h, void *tlb) diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index 8162d97..7ee4de4 100644 --- a/gdbserver/win32-low.h +++ b/gdbserver/win32-low.h @@ -175,9 +175,6 @@ public: struct gdbserver_windows_process : public windows_nat::windows_process_info { windows_nat::windows_thread_info *find_thread (ptid_t ptid) override; - windows_nat::windows_thread_info *thread_rec - (ptid_t ptid, - windows_nat::thread_disposition_type disposition) override; DWORD handle_output_debug_string (struct target_waitstatus *ourstatus) override; void handle_load_dll (const char *dll_name, LPVOID base) override; void handle_unload_dll () override; |