From cb0a939a6f2d864ec0d130685ff4d8366457d699 Mon Sep 17 00:00:00 2001 From: Mike Dunston Date: Sun, 3 Mar 2019 06:51:59 -0800 Subject: [PATCH] Adding debug flag to PIO build script (#2510) Adding the -g3 flag that was omitted in the PIO build script but is present in Arduino IDE build scripts. This flag restores the ability to get line numbers from stack traces for elf files generated in PlatformIO IDE. --- tools/platformio-build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index d5e04816..3ab81f24 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -44,6 +44,7 @@ env.Append( CCFLAGS=[ "-Os", + "-g3", "-Wall", "-nostdlib", "-Wpointer-arith",