From 3b8d7977c446e85f1f89f0fe4a77fc30ec5af2a8 Mon Sep 17 00:00:00 2001 From: atanisoft Date: Mon, 25 Feb 2019 13:48:25 -0800 Subject: [PATCH] Adding debug flag to PIO build script 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 d5e04816e20..3ab81f24a21 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -44,6 +44,7 @@ CCFLAGS=[ "-Os", + "-g3", "-Wall", "-nostdlib", "-Wpointer-arith",