diff options
author | hjk <qtc-committer@nokia.com> | 2010-08-23 12:43:58 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-08-23 12:45:07 +0200 |
commit | 02c331e0c4e8edcbe2c9402efe91c202ac521a04 (patch) | |
tree | e898216a842092c26ebf2577327489a67b252bbd | |
parent | b7af9e06f85e0fa27ed422e00e1a9b03a2348ced (diff) | |
download | qt-creator-02c331e0c4e8edcbe2c9402efe91c202ac521a04.tar.gz |
debugger: fix for non-7bit chars on Windows
Task-number: QTCREATORBUG-2136
-rw-r--r-- | share/qtcreator/gdbmacros/dumper.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index 11a7ced047..95b66e853a 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -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): |