From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MSN3Jke+aGqt1TEAWB0awg (envelope-from ) for ; Tue, 28 Jul 2026 10:35:51 -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=KO0IbLlS; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KO0IbLlS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 989451E09E; Tue, 28 Jul 2026 10:35:51 -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 D3DE61E099 for ; Tue, 28 Jul 2026 10:35:50 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1ACE84BB3BC0 for ; Tue, 28 Jul 2026 14:35:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1ACE84BB3BC0 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=KO0IbLlS; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KO0IbLlS Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazon11013028.outbound.protection.outlook.com [52.101.83.28]) by sourceware.org (Postfix) with ESMTPS id 775E24BB3B88 for ; Tue, 28 Jul 2026 14:34:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 775E24BB3B88 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 775E24BB3B88 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.83.28 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1785249289; cv=pass; b=vcEQdYPOU5Qns7E/A859XzBcLOUu/qPoStILE10nX9RjvlYTbDJIkW1Zl3OJffcU+PfRANGGafzmGS4pJH7tv2gteGn1+9qCtwCofdUrZnMv6pgonxq3fmxO7pgHpcRqxMPziWf2/0OG7+P7Q8S4i++/DDK6R7J25UsIAvo1xDk= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1785249289; c=relaxed/simple; bh=OBCAC7YBTXfvbuQP3tdXAL38omIXgIoM1Aar7b3KAvA=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Nd69ba2QAdrTaeWDSa3aVanJXPw4V9eSUycDJu5i0aaVt1CsYugl/hlgTUbV0ZlZ6Aw7nibJO3nVTiy6tdR7lJo5TV8nXvxNU9qQTXU7m1ajX29r0jvxPMcNzHPySOj0WAkZoGra8XpaA4m2q6HKkP75EEoDFb6RhFuY7/XZN8w= 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=KO0IbLlS; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KO0IbLlS DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 775E24BB3B88 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=QaBPcQpD22GS+LgOz5SKgfx4Abjn885i5FTAsyW/D/SlI+zdUzEmKSOfnrRqIdoP12v+NW1xtdhbhmS2SyL0kgs6FlLDwBcK954wFBd1+swmzWwReLvqphGT/09/qXSCLPjwIF1om2i9FFJwEd9fpMMRZWYESCpRqIr0YXOr7qyg0FLPWyfUSFFkdeCgUr3S6yWL+eK+y7YiLquFDqMqPJe3oTg500y40248yAu4hxpcjS4w7xYE9+XNdfGxwojE/f/IG3MFIO76P8RJzppYAClVLcqb3I4VDHZkorzMzIIhm/TKpRIMsGmZqBHEh8r++h0fypKl7Sp8Pc5U0yE99w== 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=dtDzgXiC+Qk06WwLV9klOqfZqBv0d/ZIGRY8pDwRvpo=; b=ZVwTCZTRWb7oQwpHfKi+SJeqQONvzvv2nf6g9g92EE8d+YzVvnN7DWPdm6fvTCUrG7r9C1BvLIhGhDRIlobvFk559/++V1WNGNOaz/x4+49Hyaj59EtvC/O9P6czk4q8V5nPizYzgKHBci3BIGtCgReTfTno1Z2NWC/2Pd3lfztNyScb97f3Pszc/Y8H/G2ymDEXjceU/DVFf37ifYz2Cb7GWE9UEM7b0SoVDK/BVA60Txvp1sjCYr4EzreGC4ZIqSyIfBksaYZyDGtEbez7VUTvtSTc7IC7uC9dJ4ZUHcgouvdugRxGkUzOwiIuOmEd6NzuSUdV/eupiy2uaZKOrQ== 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] 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=dtDzgXiC+Qk06WwLV9klOqfZqBv0d/ZIGRY8pDwRvpo=; b=KO0IbLlSwGSYhXDak5YcpT8e83PLnwZopjfinCGjxPwb1aeunmGfWLnqx8fWsutElJaefqLIEQ549BnIk2xLkr39pA0nVx1j/87IewhaemmEbZTXifpVk4+iQapXObTkvYs8KenwsAC+x7eeeAPyxikqNoX9QtFyyB6tHb8Jj4E= Received: from DUZPR01CA0247.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b5::17) by PAVPR08MB9282.eurprd08.prod.outlook.com (2603:10a6:102:305::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.13; Tue, 28 Jul 2026 14:34:41 +0000 Received: from DU6PEPF0000A7E1.eurprd02.prod.outlook.com (2603:10a6:10:4b5:cafe::9f) by DUZPR01CA0247.outlook.office365.com (2603:10a6:10:4b5::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.270.12 via Frontend Transport; Tue, 28 Jul 2026 14:34:39 +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 DU6PEPF0000A7E1.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Tue, 28 Jul 2026 14:34:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D/p5tsZ4fs5J0ujdbYw8cnAwfMOkavj6W0+DMe0486tmEow11eVgvCEsn6CJER2X/0zgOPcVU8AvGBzDMl00DAbQiUloBGibbIsQXK+2zLrxpAcJ1ZLijVhEAx4J8CIu+P4CpEP8YbuH/LvqnQXKzggo1DK9zFF3ytuH5/SVHj3EA+c8dohz5XqvgPeHxjWewucxbowW5LO31HtJFEMlF+Hmuzrulh96Lje5ageFBn4fViNYtoASvHME6UE43hern1QxPBi6M+7kK9GHX1R2tW1kt9cFYNNtugajdDnIE1e+P8dppuFHzliEPC8wgwy2tfKt0dONaDKV/PbR/CTzOg== 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=dtDzgXiC+Qk06WwLV9klOqfZqBv0d/ZIGRY8pDwRvpo=; b=zQrmFVsrarUNmUF/oHKRkLZBTIL+4Bjopxts4/5l2MW4+eq+YWWwL1qJrbnCAebXdfab6W9P/OwnTE/KBN+7eT6SvtWBC7X7IpG1JWnbbJ+hFVRR0OZl6fDcLs92zMHD1NIc+KCfq2VVq/JDAneRwDWem43Mqw6T74qLmpVaLiqtMhnvGR+2nBF1avxfsbvL1BRsVE7jH5fCaIXcoPLvh/e+X3+ioAPDI5m9+lt22HWR+TEFXAUB/fgh1Fxa7W4c7CnM44OwSq1CBHrbOx0a4kTMrKa3gGwUChZ8NNFd9Ez0V0UMX53ORScBqtKVl028bwI8q+yumPOyCmJsDxWTSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) 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=dtDzgXiC+Qk06WwLV9klOqfZqBv0d/ZIGRY8pDwRvpo=; b=KO0IbLlSwGSYhXDak5YcpT8e83PLnwZopjfinCGjxPwb1aeunmGfWLnqx8fWsutElJaefqLIEQ549BnIk2xLkr39pA0nVx1j/87IewhaemmEbZTXifpVk4+iQapXObTkvYs8KenwsAC+x7eeeAPyxikqNoX9QtFyyB6tHb8Jj4E= Received: from DUZPR01CA0327.eurprd01.prod.exchangelabs.com (2603:10a6:10:4ba::17) by AS1PR08MB7564.eurprd08.prod.outlook.com (2603:10a6:20b:473::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.13; Tue, 28 Jul 2026 14:33:35 +0000 Received: from DU2PEPF0001E9C1.eurprd03.prod.outlook.com (2603:10a6:10:4ba:cafe::44) by DUZPR01CA0327.outlook.office365.com (2603:10a6:10:4ba::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.270.12 via Frontend Transport; Tue, 28 Jul 2026 14:33:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by DU2PEPF0001E9C1.mail.protection.outlook.com (10.167.8.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Tue, 28 Jul 2026 14:33:34 +0000 Received: from AZ-NEU-EX03.Arm.com (10.240.25.137) by AZ-NEU-EX04.Arm.com (10.240.25.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 28 Jul 2026 14:33:33 +0000 Received: from PF4S4363.arm.com (10.57.42.206) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Tue, 28 Jul 2026 14:33:33 +0000 From: Matthieu Longo To: CC: Luis Machado , Luis Machado , Simon Marchi , "Thiago Jung Bauermann" , Matthieu Longo Subject: [PATCH v1 1/2] gdb: rename any_thread_of_inferior to any_non_exited_thread_of_inferior Date: Tue, 28 Jul 2026 15:33:16 +0100 Message-ID: <20260728143317.245389-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260728143317.245389-1-matthieu.longo@arm.com> References: <20260728143317.245389-1-matthieu.longo@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C1:EE_|AS1PR08MB7564:EE_|DU6PEPF0000A7E1:EE_|PAVPR08MB9282:EE_ X-MS-Office365-Filtering-Correlation-Id: 309fb476-41ca-40d3-7d91-08deecb55b09 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|376014|82310400026|36860700016|1800799024|23010399003|13003099007|10063799003|6133799003|56012099006|10067099003|11063799006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info-Original: hOVMY0SRO41xdSD2DFkwviCm/QReRQSBeKVVM8UunmsYQzM1gSsTKg3W2+fbPmr+UNSra/6Z4YK6+IYWzX242Vce/o1sxQArFc6xPlapnVuF+WHRv4liCQubaS9Gman6HU95UP2TgMtzL/xR14TLHzxm0Zq+J1/czDJqPAP9ylnZrAUyVFTL4YcvFe+wzmpyVi5TKn1ShTXCNB7paPNu+NWABUKpnCs/UMY67MUTBw7fO72JGVNaePCdgv5kXQklW1PN2q6zckFUIQNnwD1yVS8VOBAyrT+iGWPR22UY2WRt82KNfI2CBf+dEYH1zYmxTkPTdR+kMZka9x1bEqraMPL2E/Ef140ZahDKGYE9ZgV42zto1nVx0ax07PbgGzOu0HirNhr7oQJL9dneG1wGKy1rwMc8QuqSO2tkaihBsmMMAWaI06HRNYRMhwGO8JKlUaiVm4LVATJJGc+l+n6fVMJdydEoI9V7o4kgJAsGqhWISPGflrkOMVxD/mVbRq+UuWh6O0IGC33iwCGlGm6i5MK37XtlS31kGZfgVWqKSBVa8W77nJKoj2SDDp/UAFMBByMC2tN+0qM95euTGfVqyqM9XaVjHLDVt7s1KaxYi6J5qcv4WY3PVe3EwlRUUz4clBJIxs53cJolHGeCOOVGQIJNsRi092spHEVxEcj75+3T2ZlcWjgQ/vqbVDYd8mSsu+Rr75Ue8uc8kS1EeqFwPw== X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(36860700016)(1800799024)(23010399003)(13003099007)(10063799003)(6133799003)(56012099006)(10067099003)(11063799006)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: ArYOafiQ42qh2rtivUF6WxA365fbCUZoioqZs0csEA4ttoJ5tmdnEABUNODbQ4ypeQMlZlPAlGDe6fakbeRUMbXsapOoQCte4GHDtuDMxBSINxnQfEWCOMEPfMPGScCt3Ef9mQu5OTotTwT/kzsrZpu35StY5bIgqvtS6d3pK951UohTluaigFJHsP2HgzDFcJSW/7Bi4Kb3L5a6IVujRSjIjH5JNvC/2gita785yEgzYOaZxvQGryP4w6Dfe7uZ9dcX0jzWrOo57jr2W0JIoZgxJUCdZP9rXwtLAGv2aZ0HIkGMGOFPEofrLV4TTGFNi53HxCUFswqPt3Jh8hJo6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR08MB7564 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000A7E1.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 588632ba-c26c-4c1e-98bc-08deecb53451 X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|1800799024|23010399003|35042699022|36860700016|376014|82310400026|56012099006|11063799006|10067099003|6133799003|10063799003|22082099003|18002099003|13003099007; X-Microsoft-Antispam-Message-Info: QTCNAb/QmpuxuWS/VEfQd2UXzPmxBFwWwO0KSlTnuR30PD3JBRKcGS6Z8u+mrfPKVDH+/reglvweJ6DeFxaYZAjNTYkgQnkziwRiBna71ZUXCFWIVwaplQAZelyimv9dhzr10//ryNU/I6kXMKfP6gSWPRwx/4VpNB4U171bocIRohFiVuxJCC1VyqhDRStsBJJTdT5N42xfzGTb2+9u32yvlcLc0b6fRpVjrriQ4QrLGhGBOAW5rOgYhav5S5OJ3c7K43bFtFwxJEcUDtbJJge9+Mx3OphZQGOtPGpMr+GB2NKZS0LGY5p82Exe5nx1DQppOlekb1vMi024XVLoeNQnxza34Zs0ziYp5ukPFbvRjSPJuzJgKFMsVdXJ4vwjDpdZzzel3Kabi67YeYS+U6IDXgrzDG+80z1FLbZdTQRjiy+h0HfXa356EckV1EBfbJW6enK8dMHi+prUmWZozskEayo8eWBdp/56+AwJ5bT3duyXiMAKfjdRkcHeiqywf0vgUPwonMk54kDWK83hGZrBhpyeGXiKDCuFJDkhsFG4IIH5sqbM6E3a2A8eXlZ5Mgf0l29p5+cAhgaZAi/brufzXvm9FjgcL7p8WX3s6tmo1NAHa63R3B1ED6qtK36SKZdC2BKKe69pKCFvDMwn/HLvkRxKmT1Z0h0NoO4/9Q3SiJE9y6pwxMyGIbtuGYpn6iTORAQG22GDpJKQOCRh1Q== X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(14060799003)(1800799024)(23010399003)(35042699022)(36860700016)(376014)(82310400026)(56012099006)(11063799006)(10067099003)(6133799003)(10063799003)(22082099003)(18002099003)(13003099007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q/s/mdHz5vxqC2emHSjWPUMIHose1/Ssk8LG66TmDH7J+q9d/s5RusY6omf56+lAp2kZI3ldnNC2LgEkq3kgjpiw171MiuJxxDEtwAgb40SbLgLwg3X90zQZkrOSlqwlSnKl0nCMGtD4b3NTiQwc4ubywWcADkp9x4UswyGZ9R5pE+DqL+056ZaRJY+4Mw8o54/Fk4HKc4oAU55w4nJS0BuRJcgVabb7RTrg+Lx0MO5r2z7kWiXh/Dqx5Hq6rip/itgTTG7QoKXytfgOdvUnTA9tOua7J3iyjk3hdqGHFQs7VHZsR2WXvx/F0L8hpvxMsUHZrg744hAGrGQt/3XJzPL3+dPMMf9Uf4haPdw4O7fFlxe2wY/cntqKFJwPZz+2cxCYDqg0ygfY0pxLsyTDLHzByeEzbtbKsXeXFmLc8xLEDksSjIpeTxAe3JNEbCP6 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2026 14:34:39.2666 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 309fb476-41ca-40d3-7d91-08deecb55b09 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: DU6PEPF0000A7E1.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9282 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 The name any_thread_of_inferior suggests that the function may return any thread of the inferior. In practice, it only returns a non-exited thread. Rename it to any_non_exited_thread_of_inferior to better reflect its behavior. This is a preparatory change for the following patch, which adds another helper with similar semantics. Suggested-by: Simon Marchi [1]: https://inbox.sourceware.org/gdb-patches/590655c1-abed-4a16-b8cc -762f1d8e6093@simark.ca/ --- gdb/gdbthread.h | 4 ++-- gdb/inferior.c | 6 +++--- gdb/linux-fork.c | 10 +++++----- gdb/mi/mi-main.c | 4 ++-- gdb/remote.c | 4 ++-- gdb/thread.c | 2 +- gdb/top.c | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 1bdbf621982..6588ae0c6a7 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -779,9 +779,9 @@ struct thread_info *find_thread_by_handle /* Finds the first thread of the specified inferior. */ extern struct thread_info *first_thread_of_inferior (inferior *inf); -/* Returns any thread of inferior INF, giving preference to the +/* Returns any non-exited thread of inferior INF, giving preference to the current thread. */ -extern struct thread_info *any_thread_of_inferior (inferior *inf); +extern struct thread_info *any_non_exited_thread_of_inferior (inferior *inf); /* Returns any non-exited thread of inferior INF, giving preference to the current thread, and to not executing threads. */ diff --git a/gdb/inferior.c b/gdb/inferior.c index 1481f46cdd1..ac8c4354b71 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -663,7 +663,7 @@ detach_inferior_command (const char *args, int from_tty) continue; } - thread_info *tp = any_thread_of_inferior (inf); + thread_info *tp = any_non_exited_thread_of_inferior (inf); if (tp == NULL) { warning (_("Inferior ID %d has no threads."), num); @@ -702,7 +702,7 @@ kill_inferior_command (const char *args, int from_tty) continue; } - thread_info *tp = any_thread_of_inferior (inf); + thread_info *tp = any_non_exited_thread_of_inferior (inf); if (tp == NULL) { warning (_("Inferior ID %d has no threads."), num); @@ -771,7 +771,7 @@ inferior_command (const char *args, int from_tty) { if (inf != current_inferior ()) { - thread_info *tp = any_thread_of_inferior (inf); + thread_info *tp = any_non_exited_thread_of_inferior (inf); if (tp == NULL) error (_("Inferior has no threads.")); diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 92afa4dde6d..446d3284388 100644 --- a/gdb/linux-fork.c +++ b/gdb/linux-fork.c @@ -571,7 +571,7 @@ class scoped_switch_fork_info if (oldinf != newinf) { - thread_info *tp = any_thread_of_inferior (newinf); + thread_info *tp = any_non_exited_thread_of_inferior (newinf); switch_to_thread (tp); m_oldinf = oldinf; } @@ -593,7 +593,7 @@ class scoped_switch_fork_info remove_breakpoints (); if (m_oldinf != nullptr) { - thread_info *tp = any_thread_of_inferior (m_oldinf); + thread_info *tp = any_non_exited_thread_of_inferior (m_oldinf); switch_to_thread (tp); } fork_load_infrun_state (m_oldfp); @@ -836,7 +836,7 @@ print_checkpoints (struct ui_out *uiout, inferior *req_inf, fork_info *req_fi) if (req_fi != nullptr && req_fi != &fi) continue; - thread_info *t = any_thread_of_inferior (inf); + thread_info *t = any_non_exited_thread_of_inferior (inf); bool is_current = fi.ptid.pid () == inf->pid; ui_out_emit_tuple tuple_emitter (uiout, nullptr); @@ -1063,7 +1063,7 @@ linux_fork_context (struct fork_info *newfp, int from_tty, inferior *newinf) if (newinf != current_inferior ()) { - thread_info *tp = any_thread_of_inferior (newinf); + thread_info *tp = any_non_exited_thread_of_inferior (newinf); switch_to_thread (tp); inferior_changed = true; } @@ -1100,7 +1100,7 @@ restart_command (const char *args, int from_tty) /* Don't allow switching from a thread/fork that's running. */ inferior *curinf = current_inferior (); if (curinf->pid != 0 - && any_thread_of_inferior (curinf)->state () == THREAD_RUNNING) + && any_non_exited_thread_of_inferior (curinf)->state () == THREAD_RUNNING) error (_("Cannot execute this command while " "the selected thread is running.")); diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 73c64b82186..6a79805d75d 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -397,7 +397,7 @@ run_one_inferior (inferior *inf, bool start_p) if (inf->pid != 0) { - thread_info *tp = any_thread_of_inferior (inf); + thread_info *tp = any_non_exited_thread_of_inferior (inf); if (tp == NULL) error (_("Inferior has no threads.")); @@ -1742,7 +1742,7 @@ mi_cmd_remove_inferior (const char *command, const char *const *argv, int argc) set_current_inferior (new_inferior); if (new_inferior->pid != 0) - tp = any_thread_of_inferior (new_inferior); + tp = any_non_exited_thread_of_inferior (new_inferior); if (tp != NULL) switch_to_thread (tp); else diff --git a/gdb/remote.c b/gdb/remote.c index 194c4cbd9bb..30d0d171d1f 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5761,7 +5761,7 @@ remote_target::start_remote_1 (int from_tty, int extended_p) /* Need to switch to a specific thread, because remote_check_symbols uses INFERIOR_PTID to set the general thread. */ scoped_restore_current_thread restore_thread; - thread_info *thread = any_thread_of_inferior (inf); + thread_info *thread = any_non_exited_thread_of_inferior (inf); switch_to_thread (thread); this->remote_check_symbols (); } @@ -16175,7 +16175,7 @@ remote_objfile_changed_check_symbols (program_space *pspace) called very early in the connection process, while the inferior is being set up, before threads are added. Just skip it, start_remote_1 also calls remote_check_symbols when it's done setting things up. */ - thread_info *thread = any_thread_of_inferior (inf); + thread_info *thread = any_non_exited_thread_of_inferior (inf); if (thread != nullptr) { scoped_restore_current_thread restore_thread; diff --git a/gdb/thread.c b/gdb/thread.c index 96c733e0629..a7d0b8a45dc 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -675,7 +675,7 @@ first_thread_of_inferior (inferior *inf) } thread_info * -any_thread_of_inferior (inferior *inf) +any_non_exited_thread_of_inferior (inferior *inf) { gdb_assert (inf->pid != 0); diff --git a/gdb/top.c b/gdb/top.c index 477c385da61..308b5552fd5 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1862,7 +1862,7 @@ kill_or_detach (inferior *inf, int from_tty) if (inf->pid == 0) return; - thread_info *thread = any_thread_of_inferior (inf); + thread_info *thread = any_non_exited_thread_of_inferior (inf); if (thread != NULL) { switch_to_thread (thread); -- 2.55.0