First page Back Continue Last page Overview Graphics
Remote debugging: usage
On the target, run a program through gdbserver. The program execution will not start.
- gdbserver localhost:port program
Otherwise, attach gdbserver to an already running program
- gdbserver localhost:port --attach program pid
Then, on the host, run ARCH-linux-gdb, and use the following commands
- To connect to the target: target remote host:port
- To tell gdb where the debugging informations are: symbol-file program