Linux Application Debugging using Arm DS
Overview Creating a Simple Hello World Linux Application using C Creating a New C Project Configuring the Settings for New Project Creating the Source Code and Building the Project Debug the Linux Application on a Fixed Virtual Platform Model Creating an Arm DS Debug Configuration and Connecting to a FVP Model Debug Views Stepping Through the Application Disconnecting from the Debug Connection
Creating the Source Code and Building the Project
- In the Project Explorer view, right-click the HelloWorld_GCC project and select New > Source File.
- In the New Source File dialog, enter the file name HelloWorld_GCC.c.
- Click Finish to create the source file and open it in the code editing view.
- Add the following code to the new source file, and press CTRL+S to save it.
- In the Project Explorer view, right-click the HelloWorld_GCC project and select Build Project. This creates the Linux executable and required support files.
#include <stdio.h> int main(int argc, char** argv) { printf("Hello world\n"); return 0; } </stdio.h>

The items in the Debug folder are additional files required for debugging.