debugger: fix for non-7bit chars on Windows

Task-number: QTCREATORBUG-2136
This commit is contained in:
hjk
2010-08-23 12:43:58 +02:00
parent b7af9e06f8
commit 02c331e0c4

View File

@@ -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):