The steps to run or debug your program depend on your target system and how it is configured. Choose the appropriate method for your target.
Run your program on the ARM GNU/Linux target. To run a program using the included Sourcery G++ libraries, you must install the sysroot on the target, as previously discussed. Copy the executable for your program to the target system. The method you use for launching your program depends on how you have installed the libraries and built your program. In some cases, you may need to invoke the Sourcery G++ dynamic linker explicitly. Refer to Section 3.6, “Using Sourcery G++ Lite on GNU/Linux Targets” for details.
Debug your program on the target using GDB server.
You can use GDB server on a remote target to debug your program.
When debugging a program that uses the included Sourcery G++ libraries,
you must use the gdbserver
executable included
in the sysroot, and similar issues with respect to the dynamic linker
as discussed previously apply.
See Section 3.7, “Using GDB Server for Debugging” for detailed instructions.
Once you have started GDB server on the target, you can connect to
it from the debugger
on your host system.
Refer to Section 4.3, “Running Applications from GDB” for instructions on
remote debugging from command-line GDB.