[python] Proposed fix for bz10633 (some strings not respecting options->print_max)
Phil Muldoon
pmuldoon@redhat.com
Wed Sep 16 15:07:00 GMT 2009
http://sourceware.org/bugzilla/show_bug.cgi?id=10633
As shown in the bug, strings sourced from pretty printers are not
respecting the current length of print_max. This is not a bug with the
pretty printer code itself, but rather a missing check in c_printstr.
This patch adds a check to the inner loop while iterating over wchars
to ensure that print_max is observed.
OK?
Regards
Phil
2009-09-16 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-prettyprint.exp (gdb_py_test_silent_cmd): New
Function.
(run_lang_tests): Add print elements test.
2009-09-16 Phil Muldoon <pmuldoon@redhat.com>
* c-lang.c (c_printstr): Do not loop past options->print_max when
iterating with wchar_iterate.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: py_wchar_printmax.patch
URL: <http://sourceware.org/pipermail/archer/attachments/20090916/c3b21d71/attachment.ksh>
More information about the Archer
mailing list