When running gdbserver on the embedded board, use gdb on host PC to connect with the board, maybe some infos on the board will be displayed as follows.
Listening on port 2345
Remote debugging from host 192.168.1.1
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 2345
Remote debugging from host 192.168.1.1
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 2345
Remote debugging from host 192.168.1.1
Solution:
After opening the xxx-gdb.exe on host, use "set remote debug on " before "target remote xxxx...."
URL:
http://sourceware.org/bugzilla/show_bug.cgi?id=12865