From 66091bae24425c633d60dabfa1d1ee85869b20cb Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 2 Apr 2021 14:44:38 +0300 Subject: [PATCH] Disable GDB "startup-with-shell" only on Unix platform --- platformio/debug/config/native.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platformio/debug/config/native.py b/platformio/debug/config/native.py index c406fd59..be15b5f4 100644 --- a/platformio/debug/config/native.py +++ b/platformio/debug/config/native.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from platformio.compat import IS_WINDOWS from platformio.debug.config.base import DebugConfigBase @@ -28,5 +29,6 @@ define pio_restart_target end $INIT_BREAK -set startup-with-shell off -""" +""" + ( + "set startup-with-shell off" if not IS_WINDOWS else "" + )