public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* [python] Pretty-printers for non-ASCII data (take 2).
@ 2009-07-06 23:03 Paul Pluzhnikov
  2009-07-07  4:32 ` Jeffrey Yasskin
  2009-07-07 16:24 ` Tom Tromey
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Pluzhnikov @ 2009-07-06 23:03 UTC (permalink / raw)
  To: archer; +Cc: ppluzhnikov, jyasskin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-07 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06 23:03 [python] Pretty-printers for non-ASCII data (take 2) Paul Pluzhnikov
2009-07-07  4:32 ` Jeffrey Yasskin
2009-07-07 16:24 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).