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/16286] value.string(length = x) broken for common variable length arrays idiom


https://sourceware.org/bugzilla/show_bug.cgi?id=16286

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #7 from Tom Tromey <tromey at redhat dot com> ---
(In reply to dje from comment #4)

> I recognize the problem, but error checking and clipping of the length needs
> to be done in python before invoking value.string().

I'd rather we not advise users to do this.
Instead gdb should do the throttling.
lazy_string is intended to help with this problem;
also perhaps some other fix is possible in the value printing code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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