| 43 | |
| 44 | Create a normal Standard Makefile C Project in Eclipse, create a Makefile for the arm-linux-gnueabi toolchain(attached there is a sample for the program gdbtst) and compile the project. |
| 45 | |
| 46 | Create a gdb command file and put it somewhere in the home directory. The content of mine is: |
| 47 | {{{ |
| 48 | set remotetimeout 0 |
| 49 | set solib-absolute-prefix /usr/arm-linux-gnueabi/lib/ |
| 50 | }}} |
| 51 | |
| 52 | === Debug Configuration === |
| 53 | Create a Debug Configuration using the following steps: |
| 54 | * From the Menu select: Run -> Debug Configurations... |
| 55 | * In the Dialog press the "New lauch configuration" |
| 56 | ==== Main-Tab ==== |
| 57 | In the Main-Tab enter the following info: |
| 58 | * project |
| 59 | * C/C++ Application (from the file system using the Browse Button) |
| 60 | ==== Debugger-Tab ==== |
| 61 | In the Debugger-Tab enter the following info (Sub Tabs are indicated by <Tabname> - <Field>: |
| 62 | * Debugger = gdbserver Debugger |
| 63 | * Main - GDB Debugger: /usr/bin/arm-linux-gnueabi-gdb |
| 64 | * Main - GDB Command file: <path to the command file you created> |
| 65 | * Shared Libraries - Load shared library symbols automatically: Check |
| 66 | * Connection - Type: TCP |
| 67 | * Connection - Host name or IP address: localhost |
| 68 | * Connection - Port number: 1234 |
| 69 | |
| 70 | Save you config and start debugging ! |