gdb refuses to connect to localhost

Martin Simmons
Tue Dec 29 15:48:39 GMT 2020

>>>>> 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: ``
> 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.


More information about the Gdb mailing list