mbed-os/tools/profiles
Tomasz Moń 3c6348d04d GCC ARM: Increase develop and release debug level
Do not specify the debug level for develop and release profiles. Instead
rely on the compiler to choose sensible default (-g2). Note that -g1 is
minimal debugging information and does not include structure definitions
which quite heavily reduces debugging experience.

For develop and release profiles this results in elf file containing
structure definitions. This does not impact debug profile as it already
did use -g3 which is the highest debug level.

Compatible debuggers (eg. gdb, SEGGER Ozone) can use the extra information
to provide better debugging experience. For example, when compiled .elf is
loaded in gdb, this change makes it trivial to access internal RTX data.

Without this change on develop profile:
  (gdb) print osRtxInfo.thread.run
  'osRtxInfo' has unknown type; cast it to its declared type

With this change on develop profile:
  (gdb) print osRtxInfo.thread.run
  $1 = {curr = 0x20014F04, next = 0x20014F04}
2019-07-25 15:18:28 +01:00
..
debug.json ARM linker: add --any_contingency option 2019-07-11 11:41:30 +01:00
develop.json GCC ARM: Increase develop and release debug level 2019-07-25 15:18:28 +01:00
release.json GCC ARM: Increase develop and release debug level 2019-07-25 15:18:28 +01:00