From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CLX8MXAzK2g2NyoAWB0awg (envelope-from ) for ; Mon, 19 May 2025 09:34:40 -0400 Received: by simark.ca (Postfix, from userid 112) id C80571E11C; Mon, 19 May 2025 09:34:40 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.0 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 721061E102 for ; Mon, 19 May 2025 09:34:40 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 263343858D3C for ; Mon, 19 May 2025 13:34:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 263343858D3C Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by sourceware.org (Postfix) with ESMTPS id E4AB8385841F for ; Mon, 19 May 2025 13:25:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E4AB8385841F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E4AB8385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747661125; cv=none; b=El29m0YJblM+jlYKLdVTcyfYffeq+lVcZz8uD5+WIgorwz7+PgtACSavLiVvBIZ8rhXKWUNlYIY79DHoD3C0xf2jGvpjd+W09HiWh2x0SuYErLW7x3I4TuJ+1zatV+oUnXjJjuGlMRQ6+I+JOIP0h17Eke5lDLlhPd5VjlLWfRc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747661125; c=relaxed/simple; bh=yUkKOaEQQfbOmOXJs9gghdCDt/zUE8qWX6ls6CYtqfU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=fCHFrTtwBlFvK9/fGmCooxA7G7EC5ylgGol+WTmtfl1NJqq+jMJAhn7HCi0zAAdHbnvQbeRaODsU8mj6MB8VssmfX8quIu8Q31InBOItZdRqW94OqUeyAm84PEqha7OQxEIPIURK96Y0OWYyWoBu/rlFvubCD9mwWudj2XKOwQg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4AB8385841F Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-441d1ed82faso33345095e9.0 for ; Mon, 19 May 2025 06:25:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747661121; x=1748265921; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mGbQOzjfLnzjTpiBA3MHNlE9KKJ9Q8BeVC492IfVL24=; b=o8vWv8fC77NOoH7W+RU7JR2OojfRTk5f6fdKv+yukQWI6dQjDvDyMX826Kamw8NqxB jaGl8iagpVZDIkKYE1z7U05uao8GQBMpjrIylsPsxaVnIK3k6jm31gvH+7B6v8miU4oz G4ewvqqnxp2s1mtKKg5WAaS/4XG14YxnnZfIjGSh2xyPMlkjqx5sOzSmQkI9d+wYn1t0 AunleJU+7C4hV6KieiKzsKi4ZLqmyrOAaQ1VtIOGoemT3QHX8Hq71Q6QPuUgTm481myj 9baLyBqZvN9sNxPM8jPZX3P5x/ZOB9NHQXga1sCb86mkn8NpUkU2CWZEzYri2Lb/0q0A cgcg== X-Gm-Message-State: AOJu0YxmmUUXNuRiqpQxZNXdSR0D2NA+BEIhAGCQHbELFnm1erUQltkF wl2knJS3vwqJEFJw164PXPVsqfKSx3eGyRVfHqTlKfNl5zIAo+P5xta1rNtTOCGx X-Gm-Gg: ASbGncvyk43R4/Kof0iabYx6q4zISkIND7LcuIfOCRvDzlcKRBR2nJWh1KxrlCJEQTQ wHGHscH1RBnTNXen52XEXxCmS34BC41KFHaWqFRiEFJj5d+fEvNbBowG6A1nN5yfEgdFLICyJY1 /iKkGSpQMKrYUI6rW8nDHdX7vfalm7ZLmhINbSiaGm4JKSegxvcntilkzPXbmM14rR+z3ZwRYMA pBHAiyiQfkhaccjRuowXimi3fDORcWRoQE0otYg+Au2rSRifxM874zTcmxbB8v8c4XNRK/xoCHr dDY8yESaEhJalBOhrKV3kORKQcOaAgE0nc0KXCwNblq1o00GaFndbg9u4A9DIQ== X-Google-Smtp-Source: AGHT+IFBNSpzbHO5/t6Z90sLBjM4HtptdGTvP8zraniYP9/aGRL5r/AWAHI318WyN9GFgIkvT26eZA== X-Received: by 2002:a05:600c:34d5:b0:43c:e7a7:1e76 with SMTP id 5b1f17b1804b1-442fefd5e7fmr113873985e9.1.1747661121333; Mon, 19 May 2025 06:25:21 -0700 (PDT) Received: from localhost ([2001:8a0:4fe9:b400:8d90:6f0d:36bf:32df]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-443ceb7c102sm99490835e9.8.2025.05.19.06.25.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 May 2025 06:25:20 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH v2 40/47] Windows gdb: Eliminate invalidate_context Date: Mon, 19 May 2025 14:23:01 +0100 Message-ID: <20250519132308.3553663-41-pedro@palves.net> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250519132308.3553663-1-pedro@palves.net> References: <20250519132308.3553663-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org 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 ¤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, @@ -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