From 70b484a2c2fcd92ea30778840b520e3bc872c584 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 24 Oct 2019 17:34:49 +0300 Subject: [PATCH] Escape "\" char in GDB console output --- platformio/commands/debug/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/debug/helpers.py b/platformio/commands/debug/helpers.py index 9175d070..858be66b 100644 --- a/platformio/commands/debug/helpers.py +++ b/platformio/commands/debug/helpers.py @@ -33,7 +33,7 @@ class GDBBytesIO(BytesIO): # pylint: disable=too-few-public-methods @staticmethod def escape(text): - return re.sub(r"\\+", "\\\\", text) + return re.sub(r"\\+", "\\\\\\\\", text) def write(self, text): if "\n" in text: