mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Escape "\" char in GDB console output
This commit is contained in:
@ -33,7 +33,7 @@ class GDBBytesIO(BytesIO): # pylint: disable=too-few-public-methods
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def escape(text):
|
def escape(text):
|
||||||
return re.sub(r"\\+", "\\\\", text)
|
return re.sub(r"\\+", "\\\\\\\\", text)
|
||||||
|
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
if "\n" in text:
|
if "\n" in text:
|
||||||
|
Reference in New Issue
Block a user