From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id J9nVLNSESWiCpAkAWB0awg (envelope-from ) for ; Wed, 11 Jun 2025 09:29:56 -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=PHYI8FcN; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A27DB1E11C; Wed, 11 Jun 2025 09:29:56 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 ED5C01E089 for ; Wed, 11 Jun 2025 09:29:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7FC3A3858D35 for ; Wed, 11 Jun 2025 13:29:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FC3A3858D35 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=PHYI8FcN Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 2B5513858405 for ; Wed, 11 Jun 2025 13:29:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B5513858405 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 2B5513858405 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749648562; cv=none; b=jPISpKRe2ZCf/3ArscuVtK458DndYiU2j+pcJZKT1ufPI4StZLKVmPpG5dmdJm96Xv/GjXvLFFzyM5aK3zAkXxjgNYxFq6xmwbalo7Nk9CYSe5REketgdkoIQv6LNEPHjUA/eLrB7HQkzRAKeb/OzyPg2Vlv08XVBTFYGuX92Jo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749648562; c=relaxed/simple; bh=0yRryhla58OzCeKBWA5zMyMkSB8kU2m79Bhi3hGtBSE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GMojj7LjPhl5WmJvCI4tkYyMNjDBrtyA+abFSICx5jo2rAVB7hiE2VWF/ArX1jEGqanWcYRyyMRQvEZAgGRbYjvZI3eRMhiVginDAfegz2yk5a01MZeGA+7AxkrXsIVszfH1JugDOxvhsoquBXz7/pkfHy+bEBDRAb3tqYvKypQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B5513858405 Received: from eig-obgw-5006a.ext.cloudfilter.net ([10.0.29.179]) by cmsmtp with ESMTPS id PGNTu1p5UbmnlPLW5uGB36; Wed, 11 Jun 2025 13:29:21 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id PLW4u0V42u7xjPLW5ua7g5; Wed, 11 Jun 2025 13:29:21 +0000 X-Authority-Analysis: v=2.4 cv=IIkECBvG c=1 sm=1 tr=0 ts=684984b1 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=6IFa9wvqVegA:10 a=ItBw4LHWJt0A:10 a=20KFwNOVAAAA:8 a=2yGZRJVlmEcbz-hUzP0A:9 a=VS4QxaUSPT0UtbFnIvSC: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=iqyk+o+lXehEdQFIjNnAIfr5/5vYaQDa47iec5hBSp0=; b=PHYI8FcNHhQzrdL5F272YVxrXQ jYID5vYF8cV0k5u8Ewk0SyXeWrxBtn37DhT5sFNPvoPYGwKw7E8APs4GY58Pu+hmUKmEpPT6FEWo/ prHhNn05YbfDSh1REhuH08Vzj; Received: from 75-166-228-225.hlrn.qwest.net ([75.166.228.225]:47522 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uPLW3-000000005XM-41Nv; Wed, 11 Jun 2025 07:29:20 -0600 From: Tom Tromey To: Andrew Burgess Cc: Fabian Kilger , gdb-patches@sourceware.org Subject: Re: [PATCH 1/2][PR GDB/32956] gdb: implement linux namespace support for fileio_stat In-Reply-To: <87wm9iha5l.fsf@redhat.com> (Andrew Burgess's message of "Wed, 11 Jun 2025 10:58:46 +0100") References: <20250511150113.3163767-1-kilger@sec.in.tum.de> <20250511150113.3163767-2-kilger@sec.in.tum.de> <87y0umgub1.fsf@redhat.com> <73be8b96-3a2a-4e64-885e-76f7b7ed6be1@sec.in.tum.de> <784e0c86-f879-46d5-8631-702e6ae611bc@sec.in.tum.de> <87zfeehany.fsf@redhat.com> <87wm9iha5l.fsf@redhat.com> X-Attribution: Tom Date: Wed, 11 Jun 2025 07:29:17 -0600 Message-ID: <875xh2o18y.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.228.225 X-Source-L: No X-Exim-ID: 1uPLW3-000000005XM-41Nv X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-228-225.hlrn.qwest.net (bapiya) [75.166.228.225]:47522 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFmVprdCDVtvllqFUK8O/GBjqjUWX/u2/WPW+2kpRhJsuODHVPl2yf1SAbdRdSa4aLl9n18PxGkoDLkPR4FKJbiXkhvwQvcfx23euSDu1qODel/WuO3I MJgnPs+KAInCeFhY0UdevEI8U+FPz1X0Hb84v2bzZ/YtCV73kVZtRZF3dSLgn2hmEfP3GmjH0mnWbjMR712JREThdFkW18qp2Ug= 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 >>>>> "Andrew" == Andrew Burgess writes: Andrew> OK, so I dug into the history, and it would appear that (a) it was just Andrew> a mistake, and (b) it was all my fault :-/ A classic programming story, I can't tell you how many times I've been there. Andrew> Most of this can easily be fixed, but the remote protocol part we're Andrew> unfortunately stuck with. Though I wonder if we can "fix" this by just Andrew> have a 'stat' and 'lstat' remote protocol packet, change 'stat' to do an Andrew> actual 'stat', then on the GDB side we'll change the internal target API Andrew> to be called 'lstat'. This would effectively orphan the remote 'stat' Andrew> packet, as nobody would use it, but that's OK I think, and only minimal Andrew> overhead. I'll take a look at rolling something like this together. Wouldn't this negatively affect any existing remotes that implement stat-as-lstat? (I don't know if any of these actually exist.) It might be better to just document it. Tom