This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]