This is the mail archive of the gdb-patches@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]

Re: [RFC 1/8] Change wrap buffering to use a std::string


>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

>> Currently wrap buffering is implemented by allocating a string that is
>> the same width as the window, and then writing characters into it.
>> However, if gdb emits terminal escapes, then these could possibly
>> overflow the buffer.
>> 
>> To prevent this, change the wrap buffer to be a std::string and update
>> the various uses.

Simon> This looks like a good change to me, independently of this series.  I think you
Simon> should push it right away.

FWIW I think this patch will have to change to accommodate Windows -- or
at least be totally obsoleted by the needed change.  My plan is to have
a vector holding strings with their styling.  This has to happen because
styling on Windows is done via an API, not via an escape sequence.

Tom


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