From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id K5D3ByRJb2VhOBgAWB0awg (envelope-from ) for ; Tue, 05 Dec 2023 11:00:36 -0500 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=wQ/LUJWH; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 101381E0D2; Tue, 5 Dec 2023 11:00:36 -0500 (EST) 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 009E61E00F for ; Tue, 5 Dec 2023 11:00:33 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74BD9385C419 for ; Tue, 5 Dec 2023 16:00:33 +0000 (GMT) Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 5E479385800F for ; Tue, 5 Dec 2023 16:00:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E479385800F 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 5E479385800F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701792022; cv=none; b=ETfkdqxtgUaork1chmtA6So2+4LPLeKgtuVOTLxPxuY8CpNRg6mRdhaBJ983stLPo2lU62zdKfSj/050LFIVitO8yYmvpPH+yfIm5AmNq2Be+8XXX/9WjotW+W8uqHje0CUq6NAPxnfwgURwMXYWcvdWJldiGHpCYrJ/CC3yu8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701792022; c=relaxed/simple; bh=HPkyjABALYvX5oCoDYipguMwnyH9vUC/RmlPvJdPml8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=YICPf6qGeRzP2D9sG0HAK1aJV7o9Bw1yyRKpiTmsgONH1OHMUZjyyKCZ2VjheSjq6Xm39Jp1DQIXjDpYYPi7dykQsBmTab44zt+pvbJ44owI0c2IHBBupgF0tMUcGcujzbzg+EfaRQseqosHdSF7djjlQpsVu106Q/tKJ9zGL1w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6004a.ext.cloudfilter.net ([10.0.30.197]) by cmsmtp with ESMTPS id AVnUrt92phqFdAXqMrmOau; Tue, 05 Dec 2023 16:00:18 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id AXqMrrggaRGmSAXqMrdj6I; Tue, 05 Dec 2023 16:00:18 +0000 X-Authority-Analysis: v=2.4 cv=efcuwpIH c=1 sm=1 tr=0 ts=656f4912 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=20KFwNOVAAAA:8 a=3lOiZbMe2xU73Do1SuIA:9 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:In-Reply-To:Date:References :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=gWT79hpq6Rf3iaK4YX+rI3rG7Phiwl/DseGogvaeA+M=; b=wQ/LUJWH1oPScr82ctdRI+4KtM QSLnreZT2W5tZm0rOhjZkjnIsXjoou+ZB7db7m9/5nxOgvA8ot7Tt+ctIwC1inoPqURp2fxtsW+5t MSO4kVnVkm4v/Dq8oTplIogaO; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:35330 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rAXqK-002IS0-2j; Tue, 05 Dec 2023 09:00:16 -0700 From: Tom Tromey To: Alexandra Petlanova Hajkova Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH 0/6] Add vDefaultInferiorFd feature References: <20231117111840.2040709-1-ahajkova@redhat.com> <874jh1brln.fsf@tromey.com> X-Attribution: Tom Date: Tue, 05 Dec 2023 09:00:15 -0700 In-Reply-To: (Alexandra Petlanova Hajkova's message of "Mon, 4 Dec 2023 13:11:41 +0100") Message-ID: <87zfyok5bk.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) 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: 97.122.77.73 X-Source-L: No X-Exim-ID: 1rAXqK-002IS0-2j X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net (murgatroyd) [97.122.77.73]:35330 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: MS4xfKBn68C9uBiiWZmSYqTSIolaUuj8CrlD7Bj0S0lmd9Hrwu6s693N9b9nEaA2Q8PHqyc9np5ynK594zNbcJLAe1mlE699hGNfcLsbVo/9sJLENBJrSVHn 00VUfgD+6/9FYnNIwrfQc0gN8MkBuQEPD+3e/v4dSzlox4z5/oVj3Upjysj4pDrIDuJOLmVpMqKxY1SZRil/2fIR6j5MmdcZYdo= X-Spam-Status: No, score=-3017.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org >>>>> "Alexandra" == Alexandra Petlanova Hajkova writes: > Another approach might be to have a different way to specify the > connection fd to the remote, like a command-line option naming the fd to > use for RSP traffic. Alexandra> Are you imagining something like "target remote | gdbserver --once RSP_FD ...." ? Alexandra> And GDB would replace RSP_FD with the actual file descriptor to use? Yeah. Alexandra> avoids adding a new packet and the whole FD switching business. But adding the new Alexandra> packet approach makes it easier for the users. It's possible to run GDB to then run Alexandra> Valgrind from inside by using simply Alexandra> target extended-remote | vgdb --multi Alexandra> I hope this command will be replaced with an even simpler " target valgrind" at Alexandra> some point. Part of the idea would be to hide the new file descriptor handling behind the "target valgrind" facade. That is, the implementation of "target valgrind" would handle setting up the command line arguments to vgdb. Tom