From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100218 invoked by alias); 29 Aug 2018 15:28:28 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 100209 invoked by uid 89); 29 Aug 2018 15:28:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=00am X-HELO: jocasta.intra Received: from de.cellform.com (HELO jocasta.intra) (88.217.224.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Aug 2018 15:28:23 +0000 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-8) with ESMTPS id w7TFSK29027079 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Aug 2018 17:28:20 +0200 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id w7TFSKlS027078; Wed, 29 Aug 2018 17:28:20 +0200 Date: Wed, 29 Aug 2018 15:28:00 -0000 From: John Darrington To: Tom Tromey Cc: John Darrington , gdb-patches@sourceware.org Subject: Re: Remote debugging over local domain sockets? Message-ID: <20180829152820.ejvum7tshuitbick@jocasta.intra> References: <20180829070540.gv25gh2zph3dfced@jocasta.intra> <878t4p5hjn.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878t4p5hjn.fsf@tromey.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2018-08/txt/msg00738.txt.bz2 On Wed, Aug 29, 2018 at 09:17:00AM -0600, Tom Tromey wrote: >>>>> "John" == John Darrington writes: John> So far as I'm aware, it's not possible to run a remote target over John> a local domain (AF_UNIX) socket. John> Would you accept a patch which changes the behaviour of "target John> remote /foo/bar" such that if /foo/bar is a socket, gdb will John> connect to that socket instead of trying to open it as a device? How about stat'ing the path and doing the right thing depending on whether it is a device or a socket? That was my idea. Alternatively, how about new syntax instead? "target remote /path" has meant to open a serial device since forever. However there's also syntax like "target remote udp:host:port". So maybe "target remote socket:/path"? You mean where 'socket' is the literal string "socket" ? That might also work, but one would have to consider what would happen if somebody wanted to connect to a remote host called "socket" . I prefer the first idea. -- Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key.