This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems: Remote debugging over UDP.


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
------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]