Skip to content

Commit f42db05

Browse files
Seppo Takaloadbridge
authored andcommitted
Add minimal debug info to release and develop profiles.
This allows minimal debugging and allows tools like mbed-os-linker-report to work properly. Because debugging info is kept in .elf file and not flashed to device there is no side effects to flash sizes.
1 parent 4a2ace9 commit f42db05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/profiles/develop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
66
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
77
"-MMD", "-fno-delete-null-pointer-checks",
8-
"-fomit-frame-pointer", "-Os"],
8+
"-fomit-frame-pointer", "-Os", "-g1"],
99
"asm": ["-x", "assembler-with-cpp"],
1010
"c": ["-std=gnu99"],
1111
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
66
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
77
"-MMD", "-fno-delete-null-pointer-checks",
8-
"-fomit-frame-pointer", "-Os", "-DNDEBUG"],
8+
"-fomit-frame-pointer", "-Os", "-DNDEBUG", "-g1"],
99
"asm": ["-x", "assembler-with-cpp"],
1010
"c": ["-std=gnu99"],
1111
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],

0 commit comments

Comments
 (0)