From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gRxkE2j7mWpGliYAWB0awg (envelope-from ) for ; Thu, 03 Sep 2026 18:57:44 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4528E1E033; Thu, 03 Sep 2026 18:57:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 autolearn=unavailable autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 43B851E033 for ; Thu, 03 Sep 2026 18:57:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 97A274BB24D8 for ; Thu, 3 Sep 2026 22:57:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97A274BB24D8 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c201::1]) by sourceware.org (Postfix) with ESMTPS id 3B7D44BB24C5 for ; Thu, 3 Sep 2026 22:57:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B7D44BB24C5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3B7D44BB24C5 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c201::1 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1788476234; cv=pass; b=SqM0+5MDwkLnR4nxThbLIfMWXLdTzLX+IDoD0XXKZFz08KrbbGyMmLkHqTF8ybsIUO2R5dZ1w/679t92tFK5VJr6BAMEXlJWlvZvD40xQTBKpw7bpxrp2K5aoFhhPomSEUNLlLYe/bcQ7afua5kwdyzi9IwqXHMdmCOi94oBX04= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1788476234; c=relaxed/simple; bh=8+lbMw73DqJ8tTnsq3fh4bFCKFFg4721+XKNTfwaAjs=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=IAco9+O0rSNs5jS+P5l6gy4/MQmiNOxkwRs3t3O0nanTwEzU0qbguMLfUDRWo1Bc9gHh+Dy+5xi3BFwCf0WYGgpzY2YLqc834edufcAJmBK+EYNEOeR47gFZU8MIAmqupDnhVQCKVu9oCtaNBbW+9gfWRcA2EAzYlx4El3frqwc= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HBqJ0GFC DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7D44BB24C5 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=YXfY0Vmc+MkVR8d6gpuHg5i1WmRF41dZMBmJjk3aFhRG7ktrSYftvNOrZVNZFFbXAU7RZydvuhDK5GaiwieBc5pbhOB8+amKNqX6itRwiibJbobwS/gEbMuOxlqrh3DMvmcuv0+1he4FC7o3h8aL2EyvCkC7KLd2AkgTeHInfF74V/a/dOLfT2CQ19xk6oHxktOyiPt6RILSJ2NquQeNmYIEpPWL24M0otcy17ajoSFOhZ5Z30gVaA+gzvw72odHPuoGle4+CwusZ54DUGdtINoGyo5LcPNo/lRK52CiWKNeq8eaJbOjlf0QKQ7qaolilec4rSyo53TNtEq1Q9ZAcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SR1R24USD9ClNrCpTVB/2K++Eg7fBjJjJLWCwtS1p48=; b=BMsmK/AGMP5hmao8cm6RXVMPsH1T4POLS+AmxSshklYOcFewB8JaJiNh16noS19LHA8TyrNidpW997LBc8hwJP8f+wu09/My+vN7drNmq/mK7X0MZN0O5kmPIpekDx5Mzq10E6h9jirS/czWlBWfy1e+OMWHkjzTFdPHaE6iYljoYB2OsLyOzpF5oZE5Il5fpUahFlv6f9lWfJTD0P4rb3QHprlRXEr358hk9hp9jsXLHxYwFwIgYH6N8oChzuVJK5UO1mu350EpcxZjQKzEJjJq7C7v3/gYGtYff2pjMJA1/+8skJeDorQaQKzWmgqbw7HARvPHoeowTr88VcruvA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SR1R24USD9ClNrCpTVB/2K++Eg7fBjJjJLWCwtS1p48=; b=HBqJ0GFC7JtN11tlBRogKzLP+QlUHcLiNddHBKZm2EILrfBckPi1jQ7yNItCBeC2neke1E72ng8Au7rdPPvuwD2bAMQaTAy/39mChRe8FhYfDEXls2/sIodo4oX9PMJID0opYV7ffGMTRl07gHQts9apqRH3B9hNq7cdZ5QacPU= Received: from DU2P251CA0010.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::25) by AS8PR08MB8994.eurprd08.prod.outlook.com (2603:10a6:20b:5b3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.10; Thu, 3 Sep 2026 22:57:04 +0000 Received: from DB1PEPF000509EA.eurprd03.prod.outlook.com (2603:10a6:10:230:cafe::22) by DU2P251CA0010.outlook.office365.com (2603:10a6:10:230::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.382.12 via Frontend Transport; Thu, 3 Sep 2026 22:57:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by DB1PEPF000509EA.mail.protection.outlook.com (10.167.242.68) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 3 Sep 2026 22:57:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JMsDZcNkqTndDDLK/vAkVkKMYUYc5ljPbjgSieLJdc8r0pBJuGmQ1HCVTIfpw5hOJf6uuq90OYT7S9EbBbxF/aS2HK3AJy1MU8V1XaqZr3kyoYzpt/IMQTvsCXlAiL91Y6eHYB2aMPHrJJ4DMKaaU7Cp9vfBAF5N1dH/9fyPCxz4AnQMvMZ+mcHy3jPBLCiBKZi07paceSKCeAp07maVaMiIWdjQXND6aGAA/SiIwX8lxQMOVpOcL3YDsXZnDwbGlOZx0kXTASZHJGcW8aFEPKGsCAvLJeO/nFdYIM0726/CcesxAcflzzw198j0PFfAgdL75T959ZHfQYBosotarQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SR1R24USD9ClNrCpTVB/2K++Eg7fBjJjJLWCwtS1p48=; b=vM0gkft7HbayBa08mG+JS8vDVmvN3I36ZYLezem5ffJEmigQFxN0vYZjPosme0Gqaq67aw3HjWbBZ6of/FvMoCYGOp5y5HrWkX3Lvn9wIJJu2ZHPtUvFk/zuILlubP2HxB0UIgdHBx7mN9zV4vj/bQZWHePiKNFc+c2EBfbQERhDGSsP3FIi089V16yy5KVRBO2sdQ31BBl26VLKkgUYkWtYJakbybrFpTrJbP2nWDPzqTsGen1VpyhlwJfY9YrJCe9EoVPfNet4V/WjUQ1D9FwRckbaoCLXsHZP1Fk2UhMGxZvJ4Jdq797BsYb1nbp44kxa6aDqoTQmOdNTXwIMPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SR1R24USD9ClNrCpTVB/2K++Eg7fBjJjJLWCwtS1p48=; b=HBqJ0GFC7JtN11tlBRogKzLP+QlUHcLiNddHBKZm2EILrfBckPi1jQ7yNItCBeC2neke1E72ng8Au7rdPPvuwD2bAMQaTAy/39mChRe8FhYfDEXls2/sIodo4oX9PMJID0opYV7ffGMTRl07gHQts9apqRH3B9hNq7cdZ5QacPU= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB8659.eurprd08.prod.outlook.com (2603:10a6:20b:563::10) by AM9PR08MB6306.eurprd08.prod.outlook.com (2603:10a6:20b:2d6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.10; Thu, 3 Sep 2026 22:56:29 +0000 Received: from AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae]) by AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae%5]) with mapi id 15.21.0382.007; Thu, 3 Sep 2026 22:56:29 +0000 Message-ID: Date: Thu, 3 Sep 2026 23:56:27 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] gdb: rely on the first non-exited thread TPID when reading Linux procfs files To: gdb-patches@sourceware.org, Simon Marchi Cc: Thiago Jung Bauermann References: <20260824162155.467233-1-matthieu.longo@arm.com> Content-Language: en-US From: Matthieu Longo In-Reply-To: <20260824162155.467233-1-matthieu.longo@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0018.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:150::23) To AS8PR08MB8659.eurprd08.prod.outlook.com (2603:10a6:20b:563::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB8659:EE_|AM9PR08MB6306:EE_|DB1PEPF000509EA:EE_|AS8PR08MB8994:EE_ X-MS-Office365-Filtering-Correlation-Id: 556ed276-c810-4ce3-dee0-08df0a0eabda x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|23010399003|366016|376014|18002099003|22082099003|56012099006|6133799003|10067099003|11063799006; X-Microsoft-Antispam-Message-Info-Original: VedksXqDrARCCiNxeGEWokHolkbK7TB8j61Cf1KFyXItUFrAYBgHx0gUK+Dy+8enCzWdurlEQh20tNEd3YUnREpvur7HXvzuUdYJmU//ZfNK7j7HDN/86nPZe60z9/TINDgQbyAN4QjmLoq7JQhUDA04yxGP4JVzDITkxzXsny+GrxFrWP9qGlukFn9WczktCQfV38S/tltCIcv/6AekHo2gUCQt0A/TKEh/MDQlPQa+pEdwYZZ6aX9rgZQ6RXvkCyhwWa94SaNaafxg6jvJr8Wmo97+/m09o9KhVe1naG5AuRJp8HbeiKTNWsZ8t/A5/hAldJYh2BMSSyLGJ0LMcH2eSc2UzrD3/yLqYoHUgTvxjsPHQuRZhdzChh+2idtAiuGJQ8PEjYhnwYhIrpvn56ZL83zZbhFrk4Fn5/50r7yXZsDnEkbTl8Z7luG16kDTLFS4Ga8FraV/PkiGYyAQfiaQaJMg9iQ49LGsh/wkCykSkoNZrLsWjB26bFat4lmrbX/6YCMYu3lQggWpyFbeALYGtrT7w1ya29gUgcBiV5Vh24KnBCFPk58g8tXyiaqe4AmDagwwB7ds2C0R8iKBOBvNMnktwGu0c2c48pQZhKw3jCM9jYtX8RhlGDjcQAizUkdfV9NKZCG/mbBZEjvTz7KMEjDtUWvIo5xhtfh8UVk= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB8659.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(23010399003)(366016)(376014)(18002099003)(22082099003)(56012099006)(6133799003)(10067099003)(11063799006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: yl1lYzbyAO43VuwZYtJ3xKAmvWyOFYr8W6WMPuD2zzLJi/oKM5ccWLhXR7Aw+/Ri8mg8/KDMaxJokD/lUIMaavhh1jh1wsQpFw+QHpTw6+UvSZMx5Z4uug7CrXoSJ73eRjWHJ2aib21K+mVJKT4M7iru8+UPg6htX3vSgWe1R+wFj57Payaio5n89nGw+QA1lxH/1NVY+H5Wx4XD+zF/PR3hPacvFO6sJrlf9VbFmd866L9zNNx7Y3ispGB5M5SLrUwvqrnQhy7+AdAxoVnnH+cy+PNAxBf71ZB/0i0wHM68ddoo3klsyK+7uBrg6CmdQyxZxK+cetkUt1taOF7pSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6306 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509EA.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b173b1d6-3956-48e2-3f9b-08df0a0e96f8 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|23010399003|376014|14060799003|82310400026|35042699022|36860700016|13003099007|6133799003|10067099003|56012099006|11063799006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: ZdDGU9bsmDGWmCLqi16GjDy/LRSOEmlD+tfj/U3nMdZOFfHjUyDeabVs8bgYGJSz+ZZxx2NN6zdDkxaxj97VIy6rR7EbJ5itwxpxjHe0Be+cZau0vlP6qeJQKFPrGw7yXSf9yqQ4j8F5cJJX/26nD+c71KXPLdEMvveXK6AKFgVvY/tyisCiUU5L7HndmUKLxkQiHKuIFrY1kOPGYvpvugFJkiCpz1yxt3WPSlGtjnmdDJ6rzYiZAXoLKHD06FJWxP0AQCrXIitBzZhlzmeEAnYwq1/4G3Lx87tGRVHNzKKsKuGkHy4L0ik1FNVU8wVmI0AvaBr4T5Edym6RN96o2Md2ULzw2ikevlZoJZoVI6Lhw6i4aS1nT3vP/CgNyVT2UrtqHSqdw9An69epTaoIVjP47dFIayqmRG1yaKKX9cATk3NfVw96j4F2y88JJshsgkitwfn8kv2k5lP+2lPWuzrGCN+vBtgO/AARSLc0aF7I9DJKxBpInJHnSsy1omfDoWjfMZ10toxqTRL/iuPqcpdRG5TwHReJYA+OjFD82jetIGeOQf/Pv0IgyncnIC45o2H3//kqmtFIc7q1esC4bM9vY+eCE0hKL8OZl3nKfqtBkSptJB126Xh8Fi+/Uj6s3bDCdGVTiRKZe2qDZafUy0zae8bbGMhxebnCQPuRlnc= X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(23010399003)(376014)(14060799003)(82310400026)(35042699022)(36860700016)(13003099007)(6133799003)(10067099003)(56012099006)(11063799006)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FwiuH4UzOTikNzOMNz9A6h9jCunxFh7FZ2O6li4SUnbCJqZ3TganUq6kR6G1LMk2KKbeUOLMykFano6BfN2zVNekaX1chH/vCRVZk1bO5+aj8cGbB9hpqd3hQuHhWVrN+KNthx7YVLCMFHNglwrqCbB8rzAybKwy77cPkNLbovD1ENP12tqtAvnzMsDLWCGXVKubncUWtdG4ExCAkUHKvOw9H71MsZ3wZgHT0OWIvOkmjdibv0gBf7GHBlNsQTq6fp96nvOVLZ2S157YiSathikI17Fkyx3RNzK7zXtubHP+513maIDPBDeVdWpXtoIX/+OSvHsMxm8od6iniDDI8JdBtMBSzscp7F/UGB9BEDz1Fp6C9Ya35lPhYwqAmvblLqaqJrPoqOZmAtpq80GtDeQpukD2z/pv6ZOtuEXiIV+9/SC6WDCR4xPzxwov+zMC X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2026 22:57:03.7975 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 556ed276-c810-4ce3-dee0-08df0a0eabda X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509EA.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8994 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 On 24/08/2026 17:21, Matthieu Longo wrote: > On Linux, /proc/ is keyed by the thread-group leader PID. When > the leader has exited, some /proc//... entries become unavailable > even though another thread is still alive. This can happen, for instance, > when the main thread calls pthread_exit() and another thread continues > the execution (existing test: gcore-stale-thread). > > This causes GDB to fail to read procfs entries such as cmdline, cwd, > exe, maps, and smaps when it uses 'current_inferior ()->pid' after the > thread-group leader has exited. > > Fix this by adding inferior::first_non_exited_thread(), which returns > the PTID of the first non-exited thread of the inferior. Use its LWP ID > when accessing procfs entries that only need a representative live LWP > belonging to the process. > > This is a best-effort choice of a thread that is expected to still exist > in the target. Since GDB's view of the threads list may be stale, the > selected thread may already have exited by the time it is accessed. > Callers must therefore still be prepared to handle that case. > > Update the following functions: > - linux_info_proc > - linux_process_address_in_memtag_page > - linux_find_memory_regions_full > - linux_fill_prpsinfo > - linux_address_in_shadow_stack_mem_range > to use the first non-exited thread's LWP ID instead of the inferior PID > when constructing procfs paths. > > Add a new test in gdb.threads. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31207 > > Reviewed-by: Thiago Jung Bauermann Ping