Debugger: Pass output from plain gdb pretty printers hex-encoded

This takes care of "unusual" contents.

Change-Id: I5e9ce2066281d169e88a58e85e6d4dd590760e2a
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-03-21 18:46:12 +01:00
parent 066efcd6a6
commit 7107fd1591

View File

@@ -1979,6 +1979,8 @@ class PlainDumper:
lister = getattr(printer, "children", None) lister = getattr(printer, "children", None)
children = [] if lister is None else list(lister()) children = [] if lister is None else list(lister())
d.putType(self.printer.name) d.putType(self.printer.name)
val = printer.to_string().encode("hex")
d.putValue(val, Hex2EncodedLatin1)
d.putValue(printer.to_string()) d.putValue(printer.to_string())
d.putNumChild(len(children)) d.putNumChild(len(children))
if d.isExpanded(): if d.isExpanded():