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] Proposed fix for bz10633 (some strings not respecting options->print_max)


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.

Attachment: py_wchar_printmax.patch
Description: Text document


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