Commit 32f6136e authored by hjk's avatar hjk
Browse files

Debugger: Fix std::wstring dumpers



Change-Id: I16bc987a71978012a8a4faec8a7f2055412c97f5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6a23ba9b
......@@ -2138,10 +2138,10 @@ def qdump__std__string(d, value):
encodingType = Hex2EncodedLatin1
displayType = DisplayLatin1String
elif charType.sizeof == 2:
encodingType = Hex4EncodedLatin1
encodingType = Hex4EncodedLittleEndian
displayType = DisplayUtf16String
else:
encodinfType = Hex8EncodedLatin1
encodingType = Hex8EncodedLittleEndian
displayType = DisplayUtf16String
d.putAddress(value.address)
......
......@@ -2352,7 +2352,8 @@ void tst_Dumpers::dumper_data()
"str += \"e\";\n"
"wstr += wchar_t('e');\n"
"wstr += wchar_t('e');\n"
"str += \"e\";\n")
"str += \"e\";\n"
"unused(&str0, &str, &wstr0, &wstr);\n")
% Check("str0", "\"\"", "std::string")
% Check("wstr0", "\"\"", "std::wstring")
% Check("str", "\"bdebdee\"", "std::string")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment