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.
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-none-linux-gnueabi-sprite -l :10000device-url
board-file
starts the Sprite listening on port 10000. Use the following command to connect GDB to the remote Sprite:
(gdb) target remote host
:10000
to connect to the remote Sprite, 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.