Commit 7107fd15 authored by hjk's avatar hjk
Browse files

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

This takes care of "unusual" contents.

Change-Id: I5e9ce2066281d169e88a58e85e6d4dd590760e2a
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarhjk <>
parent 066efcd6
...@@ -1979,6 +1979,8 @@ class PlainDumper: ...@@ -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( d.putType(
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():
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