From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GFOQHCTLSmoeDCkAWB0awg (envelope-from ) for ; Sun, 05 Jul 2026 17:22:44 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=K8D9o4oz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 54B8C1E098; Sun, 05 Jul 2026 17:22: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.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 77C3A1E024 for ; Sun, 05 Jul 2026 17:22:42 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B9D54BA2E1B for ; Sun, 5 Jul 2026 21:22:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B9D54BA2E1B Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=K8D9o4oz Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 194424BA2E0E for ; Sun, 5 Jul 2026 21:22:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 194424BA2E0E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 194424BA2E0E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783286538; cv=none; b=ecG8zo+0+w3XE/e904AJAYE38ts6hg731plwJwzC30/cfCSbQugwpiGyq2DvdXydP0i7lAHDu4cq0U6t9HE3578Xh+ptSg0QMdk3JGlDosbxbgkIbi+Se5uyVw5biyp43AoTpNTJpMJtWDvFINf9HFGfkAwfB4P/DK/2II8s4lY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783286538; c=relaxed/simple; bh=4+SBcFO4XfMh9/0aNbgj3aZJTzEqOfr12Y3xPk4r8PY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lkGN5nx4gg4CmyGuRvM03zVfhzgxzcar+GX73ef2mlo7j1+LNrcO6DFbxzF0E+c1VKd+jr8GPTdZQYKD57MeDEh9SqkVwOdXgBKGltTOANBM9/NX9cUvIy9ZgkuPbBBnOzWSltuEAEtHHg18EuV9M+EkSL/KRPMGJavV9thzsDo= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=K8D9o4oz reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 194424BA2E0E Received: from eig-obgw-5002b.ext.cloudfilter.net ([10.0.29.226]) by cmsmtp with ESMTPS id gNU3wWTkzKSRRgUI5wMvXe; Sun, 05 Jul 2026 21:22:17 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id gUI4wJ8UmooyIgUI5wGvEP; Sun, 05 Jul 2026 21:22:17 +0000 X-Authority-Analysis: v=2.4 cv=AZ6xH2XG c=1 sm=1 tr=0 ts=6a4acb09 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=RAioF0-LDSMA:10 a=ItBw4LHWJt0A:10 a=7CQSdrXTAAAA:8 a=ctH8S3xNte3dzCjSSCUA:9 a=zZCYzV9kfG8A:10 a=a-qgeE7W1pNrGK8U0ZQC:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4+SBcFO4XfMh9/0aNbgj3aZJTzEqOfr12Y3xPk4r8PY=; b=K8D9o4ozeoK41sxVb2Z11nhJf0 XtFzTQwbtfPqcud/wZPeHs8FBcAcP+fywVq96TmpeefINEGvR9x+SD+eU/c30ROyD0796GLASmH6T wLq0gUVZauL5JwjwTMZA3OH4M; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:35950 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wgUI4-00000002rGm-2E4h; Sun, 05 Jul 2026 15:22:16 -0600 From: Tom Tromey To: Matthieu Longo Cc: , Luis Machado , Luis Machado , Andrew Burgess Subject: Re: [PATCH v1 1/8] gdb/linux-tdep: use pid_t consistently for process IDs In-Reply-To: <20260703185853.450440-2-matthieu.longo@arm.com> (Matthieu Longo's message of "Fri, 3 Jul 2026 19:58:46 +0100") References: <20260703185853.450440-1-matthieu.longo@arm.com> <20260703185853.450440-2-matthieu.longo@arm.com> X-Attribution: Tom Date: Sun, 05 Jul 2026 15:22:15 -0600 Message-ID: <87se5xgmig.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wgUI4-00000002rGm-2E4h X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (prentzel) [75.166.225.82]:35950 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKZoltz/5DM/JKoYZnPgWCaHCwzqRiUFK4ff3dJcC336rHAHCPW12lfjNaWRRfmwrbB9gwXgYMCAYSUFvqKkrOxrREsFg1zYHQkkBCd7+qmSzpocdrEX j61WfMw3vlitcYyvhu5krnsPQNXtfQ2FEDqZaLUO1oI9qAeJzoMpQIVnGGdhqQ2hhkLuOTPTAuixSt9AoRtnrhGO3ynU3T3Tpa4= 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 >>>>> "Matthieu" == Matthieu Longo writes: Matthieu> Also change inferior::pid to `pid_t' so that the inferior's process ID Matthieu> uses the appropriate type throughout GDB. I don't think this is desirable as pid_t is a host type, but the inferior's process ID has to possibly represent a target scalar. Probably the current use of 'int' here is also wrong, see those recent patches I sent and the corresponding bugs. Instead it should be ptid_t::pid_type. ... and then, ptid_t::pid_type should be LONGEST or, even better, a new enum with LONGEST as the base type, to avoid doing any arithmetic on it. I started work on this a while ago but it's a long slog & I haven't finished. Tom