diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-22 11:48:26 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-22 11:48:29 -0700 |
commit | 0dbc2fc759fc8b5eaa69d7b3b7d0c4cf4afb19be (patch) | |
tree | acc82d2ff4ce8f6ef892afe0080500c6bb41523b /gdb/tui/tui-layout.c | |
parent | 5afe342e2a61dcc49e42e68a86432e7f240af51d (diff) | |
download | fsf-binutils-gdb-0dbc2fc759fc8b5eaa69d7b3b7d0c4cf4afb19be.zip fsf-binutils-gdb-0dbc2fc759fc8b5eaa69d7b3b7d0c4cf4afb19be.tar.gz fsf-binutils-gdb-0dbc2fc759fc8b5eaa69d7b3b7d0c4cf4afb19be.tar.bz2 |
Reimplement "tui reg" command
This reimplements the low-level layout function that is used by the
"tui reg" command. Now it simply calls into the existing "layout"
command, though this will be changed again in a subsequent patch. The
rationale for this patch is that it makes it simpler to remove
"enum tui_layout_type".
gdb/ChangeLog
2020-02-22 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_reg_layout): Remove.
(tui_reg_command): Use tui_regs_layout.
* tui/tui-layout.h (tui_reg_command): Declare.
* tui/tui-layout.c (tui_reg_command): New function.
Change-Id: I0ca6884e2967005e7d3fbf5f13a0ac8f9c3298cf
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r-- | gdb/tui/tui-layout.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index e964258..74a5745 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -289,6 +289,14 @@ tui_next_layout () /* See tui-layout.h. */ void +tui_regs_layout () +{ + tui_layout_command ("regs", 0); +} + +/* See tui-layout.h. */ + +void tui_remove_some_windows () { tui_win_info *focus = tui_win_with_focus (); |