]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Windows gdb: Eliminate invalidate_context
authorPedro Alves <pedro@palves.net>
Thu, 29 Aug 2024 19:48:43 +0000 (20:48 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 9 Jun 2025 17:09:17 +0000 (18:09 +0100)
After the previous patch, windows_per_inferior::invalidate_context
isn't used anymore.  Delete it.

Change-Id: I89839c2aaf3a7b0852be596feb1c345944dc8866

gdb/windows-nat.c

index d987ca5655ad82278a53bede80e062d32976817c..25b025755bde8d6699017f4a4e0de1d434da7bf4 100644 (file)
@@ -336,7 +336,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,
@@ -891,19 +890,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.