forked from platformio/platformio-core
Escape "\" char in GDB console output
This commit is contained in:
1 parent
ed6c9a08ce
commit
70b484a2c2
1 file changed
+1
-1
@@ -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