diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-17 14:08:44 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:41 -0600 |
commit | d6ba6a11642cdbec4ce91fefe455920b5c073f60 (patch) | |
tree | 6df54168a60e0d5daa81bd40a65832abfdf39cad /gdb/cli | |
parent | 48a3bd16c2189174f601600dc6cceedd68e908b6 (diff) | |
download | binutils-d6ba6a11642cdbec4ce91fefe455920b5c073f60.zip binutils-d6ba6a11642cdbec4ce91fefe455920b5c073f60.tar.gz binutils-d6ba6a11642cdbec4ce91fefe455920b5c073f60.tar.bz2 |
Introduce tui_gen_win_info::reset method
This introduces the tui_gen_win_info::reset method and changes various
places to use it. This led to the realization that the can_highlight
member only needs to be set during construction, so this patch makes
that change as well. Finally, init_and_make_win is drastically
simplified.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (make_command_window): Don't set
can_highlight.
(show_source_disasm_command): Call the reset method.
(show_data): Don't set can_highlight. Call the reset method.
(tui_gen_win_info::reset): Rename from init_gen_win_info
(init_and_make_win): Simplify. Return tui_gen_win_info.
(show_source_or_disasm_and_command): Call the reset method.
* tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
(struct tui_cmd_window): Set can_highlight.
Diffstat (limited to 'gdb/cli')
0 files changed, 0 insertions, 0 deletions