diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-01-24 17:23:20 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-03 15:15:08 +0100 |
commit | 51c2a9e24396f69c1e7eba6cef042fad7c07880e (patch) | |
tree | a0cef4c1156927ff88198a41237682f7440e31f4 /gdb/tui/tui-winsource.c | |
parent | 6e348286d89738a7093602faba74ffe7e16eb926 (diff) | |
download | gdb-51c2a9e24396f69c1e7eba6cef042fad7c07880e.zip gdb-51c2a9e24396f69c1e7eba6cef042fad7c07880e.tar.gz gdb-51c2a9e24396f69c1e7eba6cef042fad7c07880e.tar.bz2 |
gdb: move some commands into the tui namespace
There are a lot of tui related commands that live in the top-level
command name space, e.g. layout, focus, refresh, winheight.
Having them at the top level means less typing for the user, which is
good, but, I think, makes command discovery harder.
In this commit, I propose moving all of the above mentioned commands
into the tui namespace, so 'layout' becomes 'tui layout', etc. But I
will then add aliases so that the old commands will still work,
e.g. I'll make 'layout' an alias for 'tui layout'.
The benefit I see in this work is that tui related commands can be
more easily discovered by typing 'tui ' and then tab-completing. Also
the "official" command is now a tui-sub-command, this is visible in,
for example, the help output, e.g.:
(gdb) help layout
tui layout, layout
Change the layout of windows.
Usage: tui layout prev | next | LAYOUT-NAME
List of tui layout subcommands:
tui layout asm -- Apply the "asm" layout.
tui layout next -- Apply the next TUI layout.
tui layout prev -- Apply the previous TUI layout.
tui layout regs -- Apply the TUI register layout.
tui layout split -- Apply the "split" layout.
tui layout src -- Apply the "src" layout.
Which I think is a good thing, it makes it clearer that this is a tui
command.
I've added a NEWS entry and updated the docs to mention the new and
old command names, with the new name being mentioned first.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
0 files changed, 0 insertions, 0 deletions