From: Pedro Alves Date: Thu, 29 Aug 2024 19:48:43 +0000 (+0100) Subject: Windows gdb: Eliminate invalidate_context X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e656465385a6262ae7b86dfed4348137bb24464;p=thirdparty%2Fbinutils-gdb.git Windows gdb: Eliminate invalidate_context After the previous patch, windows_per_inferior::invalidate_context isn't used anymore. Delete it. Change-Id: I89839c2aaf3a7b0852be596feb1c345944dc8866 --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index d987ca5655a..25b025755bd 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -336,7 +336,6 @@ struct windows_per_inferior : public windows_process_info void handle_unload_dll (const DEBUG_EVENT ¤t_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.