Problems: Remote debugging over UDP.

Atul Talesara atul.talesara@nevisnetworks.com
Mon Feb 23 13:10:00 GMT 2004


Hello Everybody,
I have had problems while attempting remote debugging over UDP.
For ease, I used same system as target and host.  Also, I'm
logged in as "root" on both the consoles.

On Target I do the following:
------------------------------
gdbserver udp:localhost:9090 ./hello
          ^^^

I get the following output:
Process ./hello created; pid=2135


On Host I do:
--------------
gdb ./hello

gdb> target remote udp:localhost:9090
                   ^^^

and get the following o/p:
Remote debugging using udp:localhost:9090
Couldn't establish connection to remote target
putpkt: write failed: connection refused.


When I omit the "UDP" part, i.e. use TCP, everything
works smoothly w same steps!  Am I missing something important
here because of which GDB over UDP is not working?  Can anyone
pl provide some inputs?


Thanks and Regards,
Atul P Talesara
------------------------------------------------------------------
 When "Winning" and "Losing" don't have any meaning, that is when
    the real game happens, play happens.  Otherwise it is war.
          War has a significance for Winning or Losing.
                                                         -Sri Sri
------------------------------------------------------------------



More information about the Gdb mailing list