From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 1lHvJJhAamVDjBQAWB0awg (envelope-from ) for ; Fri, 01 Dec 2023 15:22:48 -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=s9kl72+G; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 88C0D1E0C0; Fri, 1 Dec 2023 15:22:48 -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 77B951E091 for ; Fri, 1 Dec 2023 15:22:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 164AC385C6DE for ; Fri, 1 Dec 2023 20:22:46 +0000 (GMT) Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id 3C7BE3858C2C for ; Fri, 1 Dec 2023 20:22:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C7BE3858C2C 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 3C7BE3858C2C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701462153; cv=none; b=kp/Tt5ywvd2iKvBp2mhCy2fyKswhglN+mPvaAS5z4PLIYMzBsNleN9B05XAYwOSh981guf0YdeDwElz9+CCpBxq4+JjL+MSF5cV4wlKWwbQWy1JNmrqG8UNqjRuNk8pYlPCF9x/3ZrzgaYCsz0L7HsqoNWPXnXw0FFcsIR8AOVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701462153; c=relaxed/simple; bh=PwsZeSRfdotFm/hdOL0JqH8pNdM03g2vRe0SUf1kCYY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=g0s6Qbp1qmmOKYLEhCeJUZX7RoGzps6iX01DNYI7AJhx6JOhlHTDHB0rcPpz80GQNRmD0LzqGwFQLLFS98kH4HjS0NygPcIv+ujhI4UMUeCDaxGiKEn+EcTDDBOP9VFQp+3f/4ljGTu9h2jA5lYU/Ny7nt+3wPXlgDS+5TA7VCk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5009a.ext.cloudfilter.net ([10.0.29.176]) by cmsmtp with ESMTPS id 96wFrREMLjtZ39A21rDaBP; Fri, 01 Dec 2023 20:22:37 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 9A1uryqGL97pz9A1urPwmO; Fri, 01 Dec 2023 20:22:30 +0000 X-Authority-Analysis: v=2.4 cv=ULDOoQTy c=1 sm=1 tr=0 ts=656a4086 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=20KFwNOVAAAA:8 a=CCpqsmhAAAAA:8 a=Bhiic1W35s8LCM-gnd4A:9 a=QEXdDO2ut3YA:10 a=MpcGJpQ6vE4A:10 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=4wl+wF6B/HBYG+XY2EgxRkU+7m1CTfC9WSOqYT+xJkY=; b=s9kl72+Gv6aJviHns/yIMgzFI3 md4QD093tYblS2amONSvlhwkPPSIZe+pAoWXZMakZdNlpABkI0nyqu3fD4+dBJ+cJtENIBhzvlpdd rtA3BVlxEqZn56FeeB4KOHPH3; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:45320 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 1r9A1t-004Bur-2O; Fri, 01 Dec 2023 13:22:29 -0700 From: Tom Tromey To: Alexandra =?utf-8?B?SMOhamtvdsOh?= Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/6] Add vDefaultInferiorFd feature References: <20231117111840.2040709-1-ahajkova@redhat.com> X-Attribution: Tom Date: Fri, 01 Dec 2023 13:22:28 -0700 In-Reply-To: <20231117111840.2040709-1-ahajkova@redhat.com> ("Alexandra =?utf-8?B?SMOhamtvdsOhIidz?= message of "Fri, 17 Nov 2023 12:18:34 +0100") Message-ID: <874jh1brln.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 1r9A1t-004Bur-2O X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net (murgatroyd) [97.122.77.73]:45320 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: MS4xfHaEPqYcZBC64+X5dmVqsOM4NQhMZ+j9R9WwNuLoAnJZn7BycnymcgsXaNUd8xoafkgtn0KB1r0YnhBEVSAqlEV2Bo/r/f/cJgVdTeW4vhKZHYAtYEK+ XukpLvNP8OKPbKrr3mxs5RH+GOpfDdG7LEARzpQ/R+TqBUbv0dAr+1XZn+UPZfw+xQn16B17g/sUvUpowJhIUG4Xe2bkFBUcdi8= X-Spam-Status: No, score=-3017.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org >>>>> "Alexandra" =3D=3D Alexandra H=C3=A1jkov=C3=A1 = writes: FWIW I tend to think Pedro ought to review this, since he's got the most up-to-date experience with terminal handling, etc; or at least more so than I do. I do have a few comments on the implementation, but before that, I wanted to ask a bit about the overall approach. Alexandra> Currently, when GDBserver is run locally using stdio, the inferi= or Alexandra> is unable to read from STDIN so we can't give it any input. This idea in general seems fine to me (pending Pedro's input). It's also in line with, and probably needed by, the idea of moving gdb to a "gdbserver-only" model: https://sourceware.org/gdb/wiki/LocalRemoteFeatureParity It's never been super clear to me if gdbserver-only is a real goal or just something we talk about idly. I've been on the fence about it myself, though more recently I tend to like the idea, simply because it means less work -- I've written a number of patches now that needed work on both gdb and gdbserver, and this project would halve that kind of effort. Alexandra> Add a new DefaultInferiorFd feature and the corresponding packet. One question I had is - why a new packet? A new packet seems somewhat weird, in that it's only valid pretty early during startup, it seems. 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. Tom