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: [PATCH 2/4] tui-disasm: Fix line buffer size calculation


On 11/08/2016 06:56 PM, Andreas Arnez wrote:
> The code that fills the TUI disassembly window content first calculates
> the maximum full length of a displayed disassembly line.  This
> calculation typically yields the wrong result.  The result is too large,
> so the bug does not cause any run-time failures, but unnecessary
> confusion for the reader.  This patch fixes the calculation.
> 
> gdb/ChangeLog:
> 
> 	* tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
> 	the longest disassembly line's length.

OK.

Thanks,
Pedro Alves


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