aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-06 08:23:34 -0600
committerTom Tromey <tom@tromey.com>2019-08-15 12:29:28 -0600
commited4a1084d725a5d1aecefc6a430d3059a77c102d (patch)
tree14daa815f84dc691cea4b5c644ca4f59e9331844 /gdb
parent65962b20b6df7e8961ec4002179dbd51a33a627f (diff)
downloadgdb-ed4a1084d725a5d1aecefc6a430d3059a77c102d.zip
gdb-ed4a1084d725a5d1aecefc6a430d3059a77c102d.tar.gz
gdb-ed4a1084d725a5d1aecefc6a430d3059a77c102d.tar.bz2
Remove FIXMEs from tui-layout.c
An earlier patch added a couple of FIXME comments to tui-layout.c. This removes them. This is possible due to the previous patch that changed how boxing works in the TUI -- now, no special case for the command window is needed in box_win. gdb/ChangeLog 2019-08-15 Tom Tromey <tom@tromey.com> * tui/tui-layout.c (show_source_disasm_command) (show_source_or_disasm_and_command): Use make_visible method, not tui_make_window. * tui/tui-command.h (struct tui_cmd_window) <make_visible>: Remove.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/tui/tui-command.h4
-rw-r--r--gdb/tui/tui-layout.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 77f4ca0..49e01ce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2019-08-15 Tom Tromey <tom@tromey.com>
+ * tui/tui-layout.c (show_source_disasm_command)
+ (show_source_or_disasm_and_command): Use make_visible method, not
+ tui_make_window.
+ * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
+ Remove.
+
+2019-08-15 Tom Tromey <tom@tromey.com>
+
* tui/tui-wingeneral.h (tui_make_window): Update.
* tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
parameter.
diff --git a/gdb/tui/tui-command.h b/gdb/tui/tui-command.h
index 14d7750..1892956 100644
--- a/gdb/tui/tui-command.h
+++ b/gdb/tui/tui-command.h
@@ -35,10 +35,6 @@ struct tui_cmd_window : public tui_win_info
DISABLE_COPY_AND_ASSIGN (tui_cmd_window);
- void make_visible (bool visible) override
- {
- }
-
int max_height () const override;
void refresh_window () override
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 69b929d..c2abcf4 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -544,9 +544,7 @@ show_source_disasm_command (void)
tui_term_width (),
0,
tui_term_height () - cmd_height);
- /* FIXME tui_cmd_window won't recreate the handle on
- make_visible, so we need this instead. */
- tui_make_window (TUI_CMD_WIN);
+ TUI_CMD_WIN->make_visible (true);
current_layout = SRC_DISASSEM_COMMAND;
}
@@ -672,8 +670,6 @@ show_source_or_disasm_and_command (enum tui_layout_type layout_type)
tui_term_width (),
0,
src_height);
- /* FIXME tui_cmd_window won't recreate the handle on
- make_visible, so we need this instead. */
- tui_make_window (TUI_CMD_WIN);
+ TUI_CMD_WIN->make_visible (true);
current_layout = layout_type;
}