]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/tui/tui-regs.c
Clean up tui_layout_command
authorTom Tromey <tom@tromey.com>
Mon, 1 Jul 2019 02:43:32 +0000 (20:43 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:15 +0000 (12:19 -0600)
commit0379b8837a875403866e2cf1a0315bee1d8d5694
treea65bfd08eeb1e49e0262119bb0c61fd80e45f613
parentb7fbad913e8874b9a887eb149b14975343bfb7ab
Clean up tui_layout_command

tui_layout_command is a simple wrapper for tui_set_layout_by_name.
This removes the extra layer and cleans up the resulting function a
bit -- changing it to call error rather than return a result.  This
necessitated a small change to tui-regs.c, to avoid calling the
function that is being removed.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui.h (tui_set_layout_by_name): Don't declare.
* tui/tui-regs.c (tui_reg_layout): New function.
(tui_show_registers, tui_reg_command): Use it.
* tui/tui-layout.c (LAYOUT_USAGE): Remove.
(tui_layout_command): Rename from tui_set_layout_by_name.  Change
parameters.
(tui_layout_command): Remove.
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-regs.c
gdb/tui/tui.h