GDB debug of SDK examples in Eclipse


I am using an Eclipse GCC environment with the following setup:

  • Ubuntu -> 14.04 (Trusty Tahr)
  • Eclipse IDE for C/C++ Developers -> Version: Luna Service Release 1a (4.4.1)
  • GNU ARM Embedded Toolchain -> gcc-arm-none-eabi=
  • J-Link -> jlink_4.96.8_x86_64.deb
  • Softdevice -> s110_nrf51822_7.1.0
  • Nordic SDK -> nRF51 SDK v. 7.2.0
  • GNU ARM Eclipse plug-ins
  • nRF51822-QFAA-G0

To compile the blinky project was not as much an afford as to start the first debug session. I needed to add the -g compiler flag per hand into the make file to make it work. As I have to change every makefile per hand to be able to compile the examples with debug properties I wondered if there is some form of (debug) compiling option which I did not figure out.

any help would be appreciated