From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wbtxMIIGm2prAykAWB0awg (envelope-from ) for ; Fri, 04 Sep 2026 13:57:22 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=h2C44w9i; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BF7051E033; Fri, 04 Sep 2026 13:57:22 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 C59411E033 for ; Fri, 04 Sep 2026 13:57:21 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 949414BB58A5 for ; Fri, 4 Sep 2026 17:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 949414BB58A5 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=h2C44w9i Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 963A14BB3BBB for ; Fri, 4 Sep 2026 17:56:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 963A14BB3BBB Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 963A14BB3BBB Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788544618; cv=none; b=mbwiM8TpOYkYxdQlS6LcvGBTF4E8VVtYNuyjQgKBYNXdX1j/QnSDdQEayHKKZnResnE0Hg8jX24L2vlx68TpQXvGw5IYiMd/JITpd5BXKFiDF5Acm6R7LFHP1YvB9wFJjVsgcPuQuUsA2vtjtu7o5XpDpjRHlRzjxW005Qh7R7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788544618; c=relaxed/simple; bh=6njQNClwCO0jycB7YK35b9Wninm1eboBO3Wr9p+k4G8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MXO817ZuygFSzSSGLhwMc4eSQuW6QFIFx1d/ZMEGmXHo2s1UBb2ObqXqZJNdJSAJAJTpMwUK15T/rSkDAFYPl6gxTRdQfWuKhE0HD8WxYhnNvh3GaqFnsEknuXPa2TrUkJ02Q834fthJ2uKEM4xx1faP8OhfzyYylj7KFR1AOIo= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=h2C44w9i DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 963A14BB3BBB Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-7ee37dc91f5so924848a34.3 for ; Fri, 04 Sep 2026 10:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1788544618; x=1789149418; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=vq3eM/XSL5MlH8D4693t8BGogiWd0yCPLyHNNSWmuqo=; b=h2C44w9iHd4z3s8Z4e6eiX4hys+aogi53IqYF7/zqFmQG4+gEOLqvaiLCXJvnQ7sou ienSYjs+Li7AcGfdzVwz5S1rsshuBz5YqUiBl+weyng9rwsdpcYZxy8FaJ0qUrmEvKkP ejO3edqk9BQrGk4718f4kDVkYo1cKVhQmdcCCJKSJoGX+CX88f+04cPh4QDVTeo+7shy SnRxIaMyzJWoHS9O5HwkObtM446oqndvepgRtlgIKK5amis0gHxyeYthcj/VB17dWLRX 2IkaPKmjKunyPUOAyavWsF2qbDecVRMDltB0gPOoGX15jcUuvduLpN6trLEI8QRW09VR 8oGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788544618; x=1789149418; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vq3eM/XSL5MlH8D4693t8BGogiWd0yCPLyHNNSWmuqo=; b=JRF39CBI40rlnEDRE4+MMRauOb6KGEftkG3y6zCNrr3Nw1VwZ6xQzWU8ovC/tjb4vs e/3J2yrGz422ykoEzwpfTFQk/jc14APKE1yRVRzNSP1D9LesVjtgcbu6G4RpM4/Su2kB ruizvGvzVc/x499HyCLojAFuEOptHnzaYTdG7/y00aYJBdUidJ/heUG0vMZ/lN/EAJEf IjePDIiBE2SBaSA33u1CmkTWD72idKpyo3jrYvtPvqwnMReUuQkb8QXrQ/KmNx5XAsOi lo5ygQ056jPTb9s4VWYO0+1AM2FBCrYv/tB98yw4f0MCd4ga+IDMzC6WYpfu9mY6Gu6M YRVg== X-Gm-Message-State: AFuF++l5EWkL/2PZTZS0oAuRhn1OklEAKHZXto5/nqF9Vh5YhxFl/u4u gtzGBwWAPwidROsk76dYH9Qob0z3OEGrVSDTHHo0MqiVI0/gC77vPbTeQtD0GxX7sgcXLPJzj3J 0a/gKYg== X-Gm-Gg: AYBFou3ybUyidr+NYx/ujzyab8D36b9Kamx8LITb/shDCp26uzxVrUbIuynQ1Zd1dWI kf0sSUsaVa07BH+U347tsOphzVabirKsBApj8gq3TdLFSJMRAFxdbN1AeR2GA0sPED4liwbfnP0 YgBbi955T7YFQTqQCc46i/vqhCJXQJC+EHKVj3DPhjxhcamR8AuNOwRmI6KH8k+heMZvZUifMGu HU6rbucdOsKCtnOF0V6KPjFVmssay+4nZBeMGIm7UlFkImbe3lPXigdK0ZyrY9mmSGde/YlTzGc mbxDBIYhzJuAMOVYomNZTinhqLvTfp8Chk565xyy8rChowGzKMh+8WBernJvMMzj/tsCeJSwu1H +y2qdm7eFkjPfbR7uTlBbGPL49C8Zq7H+PsIi71B/ATikC4uSpVqjXGgKz19DaixosiftUaGUXZ Edzr+xPgUhnXeSb+JrkhD8RQfKKhhul1hIghu5TNbogHPc1jXVu8ymy7qmv76Jd2oqBgqZerb7a wA2 X-Received: by 2002:a05:6830:f87:b0:7dc:e336:c828 with SMTP id 46e09a7af769-7fa206b4af2mr5788828a34.10.1788544617934; Fri, 04 Sep 2026 10:56:57 -0700 (PDT) Received: from bapiya (97-122-117-2.hlrn.qwest.net. [97.122.117.2]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7fa888f614dsm2184864a34.15.2026.09.04.10.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2026 10:56:57 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove windows_process_info::main_thread_id Date: Fri, 4 Sep 2026 11:56:55 -0600 Message-ID: <20260904175655.1148548-1-tromey@adacore.com> X-Mailer: git-send-email 2.55.0 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 Hannes pointed out that windows_process_info::main_thread_id is no longer needed. This patch removes it. --- gdb/nat/windows-nat.h | 1 - gdbserver/win32-low.cc | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h index fcdf43e270e..5289ca8174f 100644 --- a/gdb/nat/windows-nat.h +++ b/gdb/nat/windows-nat.h @@ -221,7 +221,6 @@ struct windows_process_info /* The process handle */ HANDLE handle = 0; DWORD process_id = 0; - DWORD main_thread_id = 0; #ifdef __CYGWIN__ /* True if the inferior was created through Cygwin's spawn path diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 1103a802db7..c7d3a8d744f 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -293,7 +293,6 @@ do_initial_child_stuff (HANDLE proch, DWORD pid, int attached) windows_process.handle = proch; windows_process.process_id = pid; - windows_process.main_thread_id = 0; windows_process.open_process_used = true; @@ -1056,11 +1055,10 @@ get_child_debug_event (DWORD *continue_status, } windows_process.handle = current_event->u.CreateProcessInfo.hProcess; - windows_process.main_thread_id = current_event->dwThreadId; /* Add the main thread. */ child_add_thread (current_event->dwProcessId, - windows_process.main_thread_id, + current_event->dwThreadId, current_event->u.CreateProcessInfo.hThread, current_event->u.CreateProcessInfo.lpThreadLocalBase); break; base-commit: 28465a8e501a0d91fbf8d1bf70ae4833f9cf35c1 -- 2.55.0