aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/debugger/cdbbridge.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/debugger/cdbbridge.py')
-rw-r--r--share/qtcreator/debugger/cdbbridge.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/cdbbridge.py b/share/qtcreator/debugger/cdbbridge.py
index aa76d69892..8f2dbada3b 100644
--- a/share/qtcreator/debugger/cdbbridge.py
+++ b/share/qtcreator/debugger/cdbbridge.py
@@ -110,7 +110,10 @@ class Dumper(DumperBase):
# There is no cdb api for the size of bitfields.
# Workaround this issue by parsing the native debugger text for integral types.
if val.type.code == TypeCode.Integral:
- integerString = nativeValue.nativeDebuggerValue()
+ try:
+ integerString = nativeValue.nativeDebuggerValue()
+ except UnicodeDecodeError:
+ integerString = '' # cannot decode - read raw
if integerString == 'true':
val.ldata = int(1).to_bytes(1, byteorder='little')
elif integerString == 'false':