Remote Debugging

In remote debugging, the executable being debugged and the debugger run on different computers. The executable runs on the target computer, and the debugger runs on the host computer. Remote debugging requires a debugging server running on the target computer. The debugging server, gdbserver, interfaces the target executable with the host debugger, gdb. The debugging server and the debugger converse over a communications link. You are using the TCP/IP Ethernet network, but serial links can also be used. After link establishment, the debugging process proceeds like a local debugging session.

In this section, you'll boot the MediaEngine, tbdevarm, as you did in Chapter 4, “Booting Linux,” and then you'll run gdbserver on it. (In ...

Get Embedded Linux®: Hardware, Software, and Interfacing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.