aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2023-05-09 10:18:09 +0100
committerPedro Alves <pedro@palves.net>2024-05-08 00:39:56 +0100
commitf99b2890dd5f073cb10bca6105caa0805c913d8a (patch)
treedd213442e07233a4dd8d28b01fedc50ed42de072 /gdb
parentb67852992bcd4e14af9f1b6eff3b8500308352c9 (diff)
downloadbinutils-f99b2890dd5f073cb10bca6105caa0805c913d8a.zip
binutils-f99b2890dd5f073cb10bca6105caa0805c913d8a.tar.gz
binutils-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 'gdb')
-rw-r--r--gdb/nat/windows-nat.h13
-rw-r--r--gdb/windows-nat.c10
2 files changed, 0 insertions, 23 deletions
diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h
index e18edc9..fdbab0f 100644
--- a/gdb/nat/windows-nat.h
+++ b/gdb/nat/windows-nat.h
@@ -98,11 +98,6 @@ struct windows_thread_info
};
-/* Possible values to pass to 'thread_rec'. */
-enum thread_disposition_type
-{
-};
-
/* A single pending stop. See "pending_stops" for more
information. */
struct pending_stop
@@ -172,14 +167,6 @@ struct windows_process_info
This function must be supplied by the embedding application. */
virtual windows_thread_info *find_thread (ptid_t ptid) = 0;
- /* Find a thread record given a thread id. THREAD_DISPOSITION
- controls whether the thread is suspended, and whether the context
- is invalidated.
-
- This function must be supplied by the embedding application. */
- virtual windows_thread_info *thread_rec (ptid_t ptid,
- thread_disposition_type disposition) = 0;
-
/* Handle OUTPUT_DEBUG_STRING_EVENT from child process. Updates
OURSTATUS and returns the thread id if this represents a thread
change (this is specific to Cygwin), otherwise 0.
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index f5435d7..9b1bede 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -91,8 +91,6 @@ struct windows_solib
struct windows_per_inferior : public windows_process_info
{
windows_thread_info *find_thread (ptid_t ptid) override;
- windows_thread_info *thread_rec (ptid_t ptid,
- 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;
@@ -537,14 +535,6 @@ windows_per_inferior::invalidate_context (windows_thread_info *th)
th->context.ContextFlags = 0;
}
-windows_thread_info *
-windows_per_inferior::thread_rec
- (ptid_t ptid, thread_disposition_type disposition)
-{
- windows_thread_info *th = find_thread (ptid);
- return th;
-}
-
/* Add a thread to the thread list.
PTID is the ptid of the thread to be added.