diff options
author | Pedro Alves <palves@redhat.com> | 2019-03-19 18:08:27 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2019-03-19 18:08:27 +0000 |
commit | cb24623460fe3e68794b79b79b0dbd5e62598d85 (patch) | |
tree | 7ef3e9ff92a4c93a8523147710fec5d3d4838aea /gdb/ChangeLog | |
parent | 634557801d909982b47b1723f4216ebe8bc784aa (diff) | |
download | gdb-cb24623460fe3e68794b79b79b0dbd5e62598d85.zip gdb-cb24623460fe3e68794b79b79b0dbd5e62598d85.tar.gz gdb-cb24623460fe3e68794b79b79b0dbd5e62598d85.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7b896ed..c170fe4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +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-18 Alan Hayward <alan.hayward@arm.com> * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix |