Next: Configurations, Previous: Targets, Up: Top [Contents][Index]
If you are trying to debug a program running on a machine that cannot run GDB 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 GDB have special serial or TCP/IP interfaces to make this work with particular debugging targets. In addition, GDB comes with a generic serial protocol (specific to GDB, 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 GDB.
Other remote targets may be available in your
configuration of GDB; use help target
to list them.
• Connecting: | Connecting to a remote target | |
• File Transfer: | Sending files to a remote system | |
• Server: | Using the gdbserver program | |
• Remote Configuration: | Remote configuration | |
• Remote Stub: | Implementing a remote stub |