[PATCH v2 40/47] Windows gdb: Eliminate invalidate_context

Pedro Alves
2025-05-19T13:34:40Z

After the previous patch, windows_per_inferior::invalidate_context
isn't used anymore. Delete it.

Change-Id: I89839c2aaf3a7b0852be596feb1c345944dc8866
---
gdb/windows-nat.c | 14 --------------
1 file changed, 14 deletions(-)

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 408df2acd78..4f7828beb36 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -337,7 +337,6 @@ struct windows_per_inferior : public windows_process_info
void handle_unload_dll (const DEBUG_EVENT &current_event) override;
bool handle_access_violation (const EXCEPTION_RECORD *rec) override;

- void invalidate_context (windows_thread_info *th);
void fill_thread_context (windows_thread_info *th) override;

void continue_one_thread (windows_thread_info *th,
@@ -887,19 +886,6 @@ windows_per_inferior::find_thread (ptid_t ptid)
return as_windows_thread_info (thr);
}

-/* Invalidate TH's context. */
-
-void
-windows_per_inferior::invalidate_context (windows_thread_info *th)
-{
-#ifdef __x86_64__
- if (windows_process.wow64_process)
- th->wow64_context.ContextFlags = 0;
- else
-#endif
- th->context.ContextFlags = 0;
-}
-
/* Add a thread to the thread list.

PTID is the ptid of the thread to be added.
--
2.49.0