mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47: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
|
||||
def escape(text):
|
||||
return re.sub(r"\\+", "\\\\", text)
|
||||
return re.sub(r"\\+", "\\\\\\\\", text)
|
||||
|
||||
def write(self, text):
|
||||
if "\n" in text:
|
||||
|
Reference in New Issue
Block a user