This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] Pretty-printers for non-ASCII data (take 2).
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: archer at sourceware dot org
- Cc: ppluzhnikov at google dot com, jyasskin at google dot com
- Date: Mon, 6 Jul 2009 16:03:19 -0700 (PDT)
- Subject: [python] Pretty-printers for non-ASCII data (take 2).
Greetings,
Previous thread on this subject:
http://sourceware.org/ml/archer/2008-q4/msg00180.html
Jeffrey Yasskin suggests that in addition to gdb.Value.string we need a
gdb.Value.data(ptr, len) returning a Python 'str' object with just raw
contents of the value, which can then be passed to e.g. binascii.hexlify()
for printing.
Does that sound reasonable? I'll send a patch if it is.
Thanks,
--
Paul Pluzhnikov