This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug python/10705] python traceback on bad string character decoding


------- 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.


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