gdb refuses to connect to localhost

Reinaldo Molina me@molinamail.com
Tue Dec 29 15:58:49 GMT 2020


> 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


More information about the Gdb mailing list