From 8fce605913a77af63d2131bf96c61cec742d7046 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 10 Nov 2016 22:29:27 +0100 Subject: [PATCH] Debugger: Display {un}signed char* similar char* Task-number: QTCREATORBUG-17236 Change-Id: Ibbc58807572c6d1785f20948992f7a2c0dcc87f8 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/dumper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py index 2027f29728b..b637eef4100 100644 --- a/share/qtcreator/debugger/dumper.py +++ b/share/qtcreator/debugger/dumper.py @@ -1147,7 +1147,7 @@ class DumperBase: n = arrayByteSize // innerType.size() p = value.address() if displayFormat != RawFormat and p: - if innerType.name in ('char', 'wchar_t'): + if innerType.name in ('char', 'wchar_t', 'unsigned char', 'signed char'): self.putCharArrayHelper(p, n, innerType, self.currentItemFormat(), makeExpandable = False) else: @@ -1226,7 +1226,7 @@ class DumperBase: # This is shared by pointer and array formatting. def tryPutSimpleFormattedPointer(self, ptr, typeName, innerType, displayFormat, limit): if displayFormat == AutomaticFormat: - if innerType.name == 'char': + if innerType.name in ('char', 'signed char', 'unsigned char'): # Use UTF-8 as default for char *. self.putType(typeName) (elided, shown, data) = self.readToFirstZero(ptr, 1, limit)