Remote Debugging (Debugging with ROCGDB)

Next: Configurations, Previous: Heterogeneous Debugging, Up: Top [Contents][Index]

## 21 Debugging Remote Programs

If you are trying to debug a program running on a machine that cannot run ROCGDB in the usual way, it is often useful to use remote debugging. For example, you might use remote debugging on an operating system kernel, or on a small system which does not have a general purpose operating system powerful enough to run a full-featured debugger.

Some configurations of ROCGDB have special serial or TCP/IP interfaces to make this work with particular debugging targets. In addition, ROCGDB comes with a generic serial protocol (specific to ROCGDB, but not specific to any particular target system) which you can use if you write the remote stubs—the code that runs on the remote system to communicate with ROCGDB.

Other remote targets may be available in your configuration of ROCGDB; use `help target` to list them.