From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119011 invoked by alias); 5 May 2015 20:19:30 -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 118998 invoked by uid 89); 5 May 2015 20:19:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL autolearn=no version=3.3.2 X-HELO: mail3-relais-sop.national.inria.fr Received: from mail3-relais-sop.national.inria.fr (HELO mail3-relais-sop.national.inria.fr) (192.134.164.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 05 May 2015 20:19:28 +0000 Received: from 4va54-1-81-56-99-41.fbx.proxad.net (HELO marvin) ([81.56.99.41]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 05 May 2015 22:19:24 +0200 Date: Tue, 05 May 2015 20:19:00 -0000 From: Gabriel Corona To: gdb-patches@sourceware.org Subject: Re: [PATCH 2/2] Make gdbserver connect to SOCK_STREAM sockets Message-ID: <20150505201918.GA12154@marvin> References: <1430856897-12051-1-git-send-email-gabriel.corona@enst-bretagne.fr> <1430856897-12051-2-git-send-email-gabriel.corona@enst-bretagne.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1430856897-12051-2-git-send-email-gabriel.corona@enst-bretagne.fr> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00084.txt.bz2 This second patch may not be that useful because gdbserver is launched first and starts communicating immediately without waiting for a remote side to connect to the socket. If the other side is launched too late, gdbserver has already timed-out and the communication fails with: > Remote debugging using |socat STDIO UNIX-LISTEN:a.sock > Ignoring packet error, continuing... > warning: unrecognized item "timeout" in "qSupported" response > Ignoring packet error, continuing.. -- Gabriel