[python] Pretty-printers and addressprint

Paul Pluzhnikov ppluzhnikov@google.com
Tue Nov 10 17:03:00 GMT 2009


On Tue, Nov 10, 2009 at 3:53 AM, Paul Koning <Paul_Koning@dell.com> wrote:

>> Unfortunately I frequently deal with non-ascii strings, and the
>> problem just wouldn't go away :-(
>
> My test (without gdb, I don't have that installed yet) is inconclusive
> but I think using repr() will cure that too.

AFAICT, in GDB repr(value) is a no-op, and the end result of returning
repr(value) from the pretty-printer is exactly the same as that of
returning the value itself:

  $4 = 0x4007e0 "this is x\201\202\203\204"

Should repr(value) do something different?

Thanks,
-- 
Paul Pluzhnikov



More information about the Gdb mailing list