binutils-gdb/gdb/tui
Pedro Alves cb24623460 Add comments describing tui_ui_out and its fields, cleanup a bit
This commit add comments describing tui_ui_out and its fields, and
cleans up the code a little bit.

Also switch to using in-class initialization so that the initial
values can be seen alongside the comments.

I see no reason for initializing m_line as -1 instead of 0, since all
the checks in the .c file are of the form "> 0".  AFAICS there's no
practical difference between -1 and 0.  So it seems simpler to
initialize it as 0.

There's a bit of redundancy in tui_ui_out::do_field_string, which is
fixed by this commit.

gdb/ChangeLog:
2019-03-19  Pedro Alves  <palves@redhat.com>

	* tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
	(tui_ui_out::do_text): Add comments.  Reset M_LINE to 0 instead of
	to -1.  Fix TABs vs spaces.
	(tui_ui_out::tui_ui_out): Don't initialize fields here.
	* tui/tui-out.h (tui_ui_out) Add intro comments.
	<m_line, m_start_of_line>: In-class initialize, and add describing
	comment.
2019-03-19 18:08:27 +00:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-command.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-data.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-data.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-disasm.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-disasm.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-file.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-file.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-hooks.c Make TUI react to "set style enabled" 2019-03-14 05:47:10 -06:00
tui-hooks.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-interp.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-io.c Fix gdb/TUI behavior in response to [Enter] keypress 2019-03-18 20:04:40 +02:00
tui-io.h Improve/fix the TUI's current source line highlight 2019-03-18 14:26:00 +00:00
tui-layout.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-layout.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-out.c Add comments describing tui_ui_out and its fields, cleanup a bit 2019-03-19 18:08:27 +00:00
tui-out.h Add comments describing tui_ui_out and its fields, cleanup a bit 2019-03-19 18:08:27 +00:00
tui-regs.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-regs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-source.c Fix scrolling right in the TUI 2019-03-18 14:25:59 +00:00
tui-source.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-stack.c Change pid_to_str to return std::string 2019-03-13 13:50:13 -06:00
tui-stack.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-win.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-win.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-windata.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-windata.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-wingeneral.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-wingeneral.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-winsource.c Improve/fix the TUI's current source line highlight 2019-03-18 14:26:00 +00:00
tui-winsource.h Make TUI react to "set style enabled" 2019-03-14 05:47:10 -06:00
tui.c Avoid compilation warnings on MinGW. 2019-03-02 15:22:11 +02:00
tui.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00