Commit 02c331e0 authored by hjk's avatar hjk
Browse files

debugger: fix for non-7bit chars on Windows

Task-number: QTCREATORBUG-2136
parent b7af9e06
......@@ -1049,7 +1049,21 @@ class FrameCommand(gdb.Command):
#listOfBreakpoints(d)
#print('data=[' + locals + sep + watchers + '],bkpts=[' + breakpoints + ']\n')
print('data=[' + d.output + ']')
output = 'data=[' + d.output + ']'
try:
print(output)
except:
out = ""
for c in output:
cc = ord(c)
if cc > 127:
out += "\\\\%d" % cc
elif cc < 0:
out += "\\\\%d" % (cc + 256)
else:
out += c
print(out)
def handleWatch(self, d, exp, iname):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment