Commit 60e39242 authored by hjk's avatar hjk Committed by hjk

debugger: Use Latin1 as default for char *.

Change-Id: I5a5f76d312f97c6684542fd3e31f68f78d6acf58
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent b58a7aef
......@@ -1401,6 +1401,14 @@ class Dumper:
self.putAddress(value.address)
return
if format == -1 and innerTypeName == "char":
# Use Latin1 as default for char *.
self.putAddress(value.address)
self.putType(typeName)
self.putValue(encodeCharArray(value, 100), Hex2EncodedLatin1)
self.putNumChild(0)
return
if format == 0:
# Explicitly requested bald pointer.
self.putAddress(value.address)
......
......@@ -1979,8 +1979,12 @@ namespace formats {
// Windows: Select UTF-16 in "Change Format for Type" in L&W context menu.
// Other: Select UCS-6 in "Change Format for Type" in L&W context menu.
const unsigned char uu[] = {'a', 'ö', 'a' };
const unsigned char *u = uu;
BREAK_HERE;
// Make sure to undo "Change Format".
dummyStatement(&s, &w, &t);
dummyStatement(&s, &w, &t, &u);
}
void testCharArrays()
......
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