How do I use gdbserver via tcp/ip connection and debug a program remotely?
Here's what I did:

Remote end:
-----------
* run gdbserver with a command like
        gdbserver host_running_gdb:4000 my_program

Local end:
-----------
* gdb my_program
gdb> target remote host_running_gdbserver:4000 

I get a "Success" message after that from gdb, but if I continue to debug
the program, it runs on the local machine. 

I confirmed this by making the program create a file. The file was created
locally.

Where am I going wrong?
I know that the gdb manual says that this method is only for serial
debugging. 

Do I need to write those stubs into my program to debug the remote program
via the ethernet?

~Nitin

ps: I have come to this after a long time, and am not a newbie.


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to