5.6. Debugging a Remote Board
Prev | Chapter 5. Sourcery G++ Debug Sprite | Next

## 5.6. Debugging a Remote Board

You can run the Sourcery G++ Debug Sprite on a different machine from the one on which GDB is running. For example, if your board is connected to a machine in your lab, you can run the debugger on your laptop and connect to the remote board. The Sourcery G++ Debug Sprite must run on the machine that is connected to the target board. You must have Sourcery G++ installed on both machines.

To use this mode, you must start the Sprite with the `-l` option and specify the port on which you want it to listen. For example:

    > arm-uclinuxeabi-sprite -l :10000 device-url board-file

starts the Sprite listening on port 10000.

When running GDB from the command line, use the following command to connect GDB to the remote Sprite:

    (gdb) target remote host:10000

where `host` is the name of the remote machine. After this, debugging is just as if you are debugging a target board connected to your host machine.

For more detailed instructions on using the Sourcery G++ Debug Sprite in this way, please refer to the Sourcery G++ Knowledge Base.

Prev | Up | Next
5.5. Actel FlashPro Devices | Home | 5.7. Supported Board Files