forked from qt-creator/qt-creator
Debugger: Improve handling of stdint types
* Make (u)intX_t known as integral type * Handle uint8_t[] the same way as char[] and unsigned char[] Task-number: QTCREATORBUG-26501 Change-Id: I1eac21be198f8107f088e56daf435b5bb3217120 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
03bcdc9186
commit
78a1beb06e
@@ -718,10 +718,10 @@ static QString formattedValue(const WatchItem *item)
|
||||
|
||||
// Append quoted, printable character also for decimal.
|
||||
// FIXME: This is unreliable.
|
||||
if (item->type.endsWith("char")) {
|
||||
if (item->type.endsWith("char") || item->type.endsWith("int8_t")) {
|
||||
bool ok;
|
||||
const int code = item->value.toInt(&ok);
|
||||
bool isUnsigned = item->type == "unsigned char" || item->type == "uchar";
|
||||
bool isUnsigned = item->type == "unsigned char" || item->type == "uchar" || item->type == "uint8_t";
|
||||
if (ok)
|
||||
return reformatCharacter(code, 1, !isUnsigned);
|
||||
} else if (item->type.endsWith("wchar_t")) {
|
||||
|
||||
Reference in New Issue
Block a user