aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-07-31 14:59:56 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-08-10 07:22:02 +0000
commitc6c320a6ea4245bfa4efb83a495c9dc91a555887 (patch)
treef318d76574727effae9541ad991a013b73c044f8 /share
parentc25a40f6ed77b2af70a63b6740ef293947483de5 (diff)
Debugger: Avoid decoding error when fetching native value
Change-Id: I4cfe144c7d96134e373e6d6d6141eb05a7dfe911 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'share')
-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':