From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118230 invoked by alias); 9 Oct 2018 17:56:35 -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 118220 invoked by uid 89); 9 Oct 2018 17:56:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:john@da, johndarringtonwattleidau, darrington, sk:johnda X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Oct 2018 17:56:30 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9wF7-0008JV-Jv for gdb-patches@sourceware.org; Tue, 09 Oct 2018 13:56:28 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9wF3-0008HD-GJ; Tue, 09 Oct 2018 13:56:21 -0400 Received: from [176.228.60.248] (port=1649 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g9wF2-0001Qi-OP; Tue, 09 Oct 2018 13:56:21 -0400 Date: Tue, 09 Oct 2018 17:56:00 -0000 Message-Id: <831s8zypfl.fsf@gnu.org> From: Eli Zaretskii To: John Darrington CC: gdb-patches@sourceware.org In-reply-to: <20181009173257.11250-2-john@darrington.wattle.id.au> (message from John Darrington on Tue, 9 Oct 2018 19:32:57 +0200) Subject: Re: [PATCH] GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested. References: <20181009173257.11250-1-john@darrington.wattle.id.au> <20181009173257.11250-2-john@darrington.wattle.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00228.txt.bz2 > From: John Darrington > Cc: John Darrington > Date: Tue, 9 Oct 2018 19:32:57 +0200 > > When invoking gdbserver, if the COMM parameter does not include a colon (:) and > is not the name of an existing character device, then a local (unix) domain > socket will be created with that name and gdbserver will listen for connections > on that. > > gdb/doc/ > * gdb.texinfo (Server): Describe connection over a local domain socket. > > gdb/gdbserver/ > * NEWS: Mention new feature. > * configure.ac (AC_CHECK_HEADERS): Add sys/un.h. > * remote-utils.c (remote_prepare): Create a local socket if requested. > * remote-utils.c (remote_open): Don't attempt to open a file if it's a socket. > * remote-utils.c (handle_accept_event): Display the name of the socket on connection. Thanks. The documentation parts are approved, but I think we should say somewhere that this feature is only available on systems that support Unix domain sockets.