Topic summary

Gdb

Gdb

Extracted from the Wikipedia article GNU Debugger.

Remote debugging

GDB offers a "remote" mode often used when debugging embedded systems. In remote operation GDB runs on one machine and the program being debugged on another. GDB can communicate to the remote "stub" that understands the GDB protocol through a serial device or TCP/IP. A stub program can be created by linking to the appropriate stub files provided with GDB, which implement the target side of the communication protocol. Alternatively, gdbserver can be used to remotely debug the program without needing to change it in any way.