Message ID | 20231231-remote-fileio-v1-0-249cc6c440d9@tromey.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 81037385842A for <patchwork@sourceware.org>; Sun, 31 Dec 2023 20:26:13 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id B48A93858C20 for <gdb-patches@sourceware.org>; Sun, 31 Dec 2023 20:25:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B48A93858C20 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 B48A93858C20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704054343; cv=none; b=B5E3O0KLU9KkYXiGwwet8OyL6aac/dEMrrNQnqTrh2aEnmj4hpT8x0ZWmWX1L71PvDAfgFi+qgYgdczOur0tMSJLWc1u1wQG26c/OfFg3QrIUnJtBwVvi648wGSRSpKz50wWGDk7r+js5tozNorBQir9KyMs82wKP3c9g12K/Y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704054343; c=relaxed/simple; bh=ko9ZTMm+IGpcMLNQGGzzm6yR/Fy6gmMwbBZPwiL6CJc=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=HmNfqzFT8k5Rwgewef6+up4Kd7IT9gGYVC7oNd6LMGTWGaaXLUC5bbs/8jvlX9dlL5ppXIwOTALThljqvqf339D/3q7ZvvVY88Hja46CQmCkULXr2+XyhJLbbWdpeNIOd582b9+VKkyL9RB7OtF4nf3u1U5qiPUyjWnDvRs2v3I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTPS id JjiQrx2Dl6nOZK2NQrYGBJ; Sun, 31 Dec 2023 20:25:40 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id K2NPrTm7r8KNvK2NPrwxDa; Sun, 31 Dec 2023 20:25:39 +0000 X-Authority-Analysis: v=2.4 cv=dp3Itns4 c=1 sm=1 tr=0 ts=6591ce43 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=hqHEUDq_eZLiRhdaKOgA:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TStceu9nm/adSr2fdX3pbo+wF2yXxJu86aLuzP5e1Y4=; b=QYoupNH9pwhnbwb1ovA+Qtt+IA aNzZc3ZhYf11UCGR/Ef0IlrpugJP5mU3KQFk8tf1KA7fnj4ondCliGiER/06yUxEpFoa7X0xsFkVf T9mOJae4CGvi8md2+cGDkoWnb; Received: from 71-211-161-25.hlrn.qwest.net ([71.211.161.25]:45228 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from <tom@tromey.com>) id 1rK2NP-002PSB-16 for gdb-patches@sourceware.org; Sun, 31 Dec 2023 13:25:39 -0700 From: Tom Tromey <tom@tromey.com> Subject: [PATCH 0/6] Make remote-fileio per-target Date: Sun, 31 Dec 2023 13:25:37 -0700 Message-Id: <20231231-remote-fileio-v1-0-249cc6c440d9@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEHOkWUC/x3MQQrCQAyF4auUrA10xtKFVxEXmZq0ATsjSZFC6 d2Nwtt8i/cf4GzKDrfuAOOPurYaSJcOpoXqzKjPMOQ+X1MMjde2MYq+WBvmQYpIX2hII8TnbSy 6/3v3R7iQMxajOi2/ykq+scF5fgHC0apBeAAAAA== To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 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: 71.211.161.25 X-Source-L: No X-Exim-ID: 1rK2NP-002PSB-16 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-161-25.hlrn.qwest.net ([192.168.0.21]) [71.211.161.25]:45228 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfBoTQ8uyrE9ZH7slKV1NT1LiX5PKQVm0T/lOqtECQUuPMwzy6/oKAzsa2Fe6U/nUFk8nSHHHQa0D4CjYDD5+8dcCrazPRuRbd9Cpo/AhIyfJQoUNgkJK 0N/TZSsAh/oWvjo8pvR9uE3ev0RIEzzgm6irhRY7gOlrlOPDYnogca8mjv/0PV56pRc1OG5Qs0Wuf3Ft2IT1dswXVmtqA8GIAbE= X-Spam-Status: No, score=-3016.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series | Make remote-fileio per-target | |
Message
Tom Tromey
Dec. 31, 2023, 8:25 p.m. UTC
I noticed that the remote-fileio code uses a global. It seemed to me that this should be per-target instead. After writing this I noticed that gdbserver does not seem to implement any of these packets. So, I don't think this can really be tested. --- Tom Tromey (6): Make remote_fio_func_map 'const' Use vector in remote-fileio.c Use methods for remote fileio Remove sentinel from remote_fio_func_map Move remote_fileio_data to header file Store remote fileio state in remote_state gdb/remote-fileio.c | 248 ++++++++++++++++++++++++---------------------------- gdb/remote-fileio.h | 42 +++++++-- gdb/remote.c | 8 +- 3 files changed, 153 insertions(+), 145 deletions(-) --- base-commit: 276e7f5c8835cd300ee75d00556ab8839a30b9ef change-id: 20231231-remote-fileio-24fbff0ba416 Best regards,
Comments
Hi Tom, I went through the series and sent comments on patch 2. Overall this all seem reasonable to me (I have not tested the code). Best, Lancelot. On Sun, Dec 31, 2023 at 01:25:37PM -0700, Tom Tromey wrote: > I noticed that the remote-fileio code uses a global. It seemed to me > that this should be per-target instead. > > After writing this I noticed that gdbserver does not seem to implement > any of these packets. So, I don't think this can really be tested. > > --- > Tom Tromey (6): > Make remote_fio_func_map 'const' > Use vector in remote-fileio.c > Use methods for remote fileio > Remove sentinel from remote_fio_func_map > Move remote_fileio_data to header file > Store remote fileio state in remote_state > > gdb/remote-fileio.c | 248 ++++++++++++++++++++++++---------------------------- > gdb/remote-fileio.h | 42 +++++++-- > gdb/remote.c | 8 +- > 3 files changed, 153 insertions(+), 145 deletions(-) > --- > base-commit: 276e7f5c8835cd300ee75d00556ab8839a30b9ef > change-id: 20231231-remote-fileio-24fbff0ba416 > > Best regards, > -- > Tom Tromey <tom@tromey.com> >