From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Reinaldo Molina To: Martin Simmons Cc: gdb@sourceware.org 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-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Tue, 29 Dec 2020 15:58:52 -0000 > 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