From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id DK7kFj9S61+sZwAAWB0awg (envelope-from ) for ; Tue, 29 Dec 2020 10:58:55 -0500 Received: by simark.ca (Postfix, from userid 112) id 4764F1F0AA; Tue, 29 Dec 2020 10:58:55 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EBE571E552 for ; Tue, 29 Dec 2020 10:58:54 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3DF8B3851C0D; Tue, 29 Dec 2020 15:58:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DF8B3851C0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1609257534; bh=nPGc/Otrcf47l3W2absOE/9m201wjvmRXi9f2zM38+0=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=NlA73espftIjQqS2QJsjgNtGckyy+pOEOf+4/+ERaMPyanYNs5aMZmNvNS9nWtdqJ RB3cKNw93NmCD1Ivb3Kua06QaiLNAL8m0kOcQmirPkjURvK2TlbLTqUX37oJU986w1 IhL5P1jrt/PM5gFc94AdgAmcg8pw5KjC7k6dPHC8= Received: from box.molinamail.com (box.molinamail.com [157.245.10.181]) by sourceware.org (Postfix) with ESMTPS id BDB523851C0D for ; Tue, 29 Dec 2020 15:58:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BDB523851C0D Received: from authenticated-user (box.molinamail.com [157.245.10.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.molinamail.com (Postfix) with ESMTPSA id ED1FE7F3AA; Tue, 29 Dec 2020 10:58:50 -0500 (EST) Date: Tue, 29 Dec 2020 10:58:49 -0500 To: Martin Simmons Subject: Re: gdb refuses to connect to localhost Message-ID: <20201229155849.cn4rb7qyto7jwnqf@molinamail.com> References: <20201225223622.a7xovhjzndth5a2x@molinamail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Reinaldo Molina via Gdb Reply-To: Reinaldo Molina Cc: gdb@sourceware.org Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" > gdbserver --no-startup-with-shell localhost:8888 build/luajit That did it!!! My shell is `zsh` by the way. > zsh --version zsh 5.8 (x86_64-pc-linux-gnu) Thank you guys! Happy New Year! Reinaldo Molina On 12-29-20 15:48:39, Martin Simmons wrote: > >>>>> On Fri, 25 Dec 2020 17:36:22 -0500, Reinaldo Molina via Gdb said: > > > > Hey guys! > > > > Looking for some assistants here. I am trying to debug an application using `gdbserver`, but it seems my `lo` network device is messed up. `gdb` refuses to connect to `localhost` every time. Here is my flow: > > > > Terminal 1: `gdbserver localhost:8888 build/luajit` > > - Variants I've tried: `127.0.0.1:8888` > > > > Terminal 2: `gdb build/luajit -ex 'target remote localhost:8888'` > > > > Output from `gdb` on Terminal 2: > > > > (gdb) target remote :8888 > > Remote debugging using :8888 > > Ignoring packet error, continuing... > > warning: unrecognized item "timeout" in "qSupported" response > > Ignoring packet error, continuing... > > Remote replied unexpectedly to 'vMustReplyEmpty': timeout > > Try running gdbserver with the --no-startup-with-shell argument: > > gdbserver --no-startup-with-shell localhost:8888 build/luajit > > That seems to be necessary if your shell is tcsh. > > __Martin