From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7970 invoked by alias); 27 Mar 2009 14:57:06 -0000 Received: (qmail 7962 invoked by uid 22791); 27 Mar 2009 14:57:05 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Mar 2009 14:56:58 +0000 Received: (qmail 17817 invoked from network); 27 Mar 2009 14:56:55 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Mar 2009 14:56:55 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: About remote target AF_UNIX socket addition ? Date: Fri, 27 Mar 2009 14:57:00 -0000 User-Agent: KMail/1.9.10 Cc: Philippe Waille References: <20090327143915.GA18690@otto.imag.fr> In-Reply-To: <20090327143915.GA18690@otto.imag.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903271457.02867.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00179.txt.bz2 On Friday 27 March 2009 14:39:15, Philippe Waille wrote: > The target command allows remote stub access through TCP sockets. > Could it be extended to local unix domain (AF_UNIX) sockets as well ? > > gdb> target remote | some_stub_target /* existing */ > gdb> target remote tcp:host:ip_port_number /* existing */ > gdb> target remote unix:local_filesystem_port_name /* suggested */ > > > Typical usage : > + a set of users perform debugging on a shared POSIX server > + each user execute gdb and a target (a processor simulator, for instance), > both on the local server > + the target stub does not offer the remote pipe connection method, > but allows socket connections. > > Each user has to be allocated a private port name in order to bind its > gdb with its target. It is easier to do in the AF_UNIX local > filesystem naming space than in the gloabl TCP/IP port numbering space. I'm not objecting, but, my knee jerk reaction would be to implement a netcat/socat-like stub that does stdio <-> unix socket forwarding, so you'd use: target remote | mypipe_to_socket_gateway -- Pedro Alves