aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-09 16:35:41 -0600
committerTom Tromey <tom@tromey.com>2019-12-11 15:49:02 -0700
commit2192a9d3b31a595eb7add928221d49334f32c06d (patch)
treee021f263f4a25a20c885a674e6f03a92306dba0b /gdb/tui/tui-layout.h
parent389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1 (diff)
downloadbinutils-2192a9d3b31a595eb7add928221d49334f32c06d.zip
binutils-2192a9d3b31a595eb7add928221d49334f32c06d.tar.gz
binutils-2192a9d3b31a595eb7add928221d49334f32c06d.tar.bz2
First use of tui_layout
This patch introduces the first use of tui_layout, by changing show_layout to clone and use the appropriate tui_layout. This resulted in one minor layout change, and also in the unintended -- but good -- side effect that the title of each boxed window is now visible. gdb/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * tui/tui-layout.h (tui_apply_current_layout): Declare. * tui/tui-layout.c (standard_layouts, applied_layout): New globals. (tui_apply_current_layout): New function. (show_layout): Set applied_layout. Call tui_apply_current_layout. (show_source_command, show_disasm_command) (show_source_disasm_command, show_data) (show_source_or_disasm_and_command): Remove. (initialize_layouts): New function. (_initialize_tui_layout): Call initialize_layouts. gdb/testsuite/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * gdb.tui/regs.exp: Update. * gdb.tui/empty.exp (layouts): Update. * gdb.tui/basic.exp: Update. * lib/tuiterm.exp (_check_box): Don't check bottom border. Change-Id: If1ee06ee58f4803e8c213f4ab0f5bb59f4650ec2
Diffstat (limited to 'gdb/tui/tui-layout.h')
-rw-r--r--gdb/tui/tui-layout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h
index d7f0731..a9346ef 100644
--- a/gdb/tui/tui-layout.h
+++ b/gdb/tui/tui-layout.h
@@ -174,4 +174,7 @@ private:
extern void tui_add_win_to_layout (enum tui_win_type);
extern void tui_set_layout (enum tui_layout_type);
+/* Apply the current layout. */
+extern void tui_apply_current_layout ();
+
#endif /* TUI_TUI_LAYOUT_H */