This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/10705] python traceback on bad string character decoding
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 24 Nov 2009 17:17:00 -0000
- Subject: [Bug python/10705] python traceback on bad string character decoding
- References: <20090929200039.10705.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2009-11-24 17:17 -------
Phil looked at changing struct value, but the val_print code makes
it too big. We should probably get rid of val_print in favor of
value_print everywhere, but ...
Another approach to this problem would be to make a new Value.lazy_string
method. This would return a Python object holding a pointer, type,
optional length, and optional encoding. Then, change the code in
py-prettyprint.c to recognize these objects and print them via the
language string-printing function. This would solve the immediate problems.
A new method may not be needed, if the new object can be made to look
sufficiently string-like to Python.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10705
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.