diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-02 19:41:41 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-10-19 17:22:27 -0600 |
commit | 7806cea72329a354c36ed8b2177d03f9d5e2673f (patch) | |
tree | e38bb3816ccf892e0f0bf07401fa62d81f7e97a2 /gdb/doc | |
parent | 84371624ada07e6f107ee14c48a609466055fe0d (diff) | |
download | gdb-7806cea72329a354c36ed8b2177d03f9d5e2673f.zip gdb-7806cea72329a354c36ed8b2177d03f9d5e2673f.tar.gz gdb-7806cea72329a354c36ed8b2177d03f9d5e2673f.tar.bz2 |
Deprecate and replace the "tabset" command
The "tabset" command sets the tab width as used by the TUI for source
and disassembly display.
This command has long seemed to be misnamed to me. It is more in
keeping with gdb design to call it "set tui tab-width". Also, making
this change allows for the corresponding "show" command to work.
gdb/ChangeLog
2018-10-19 Tom Tromey <tom@tromey.com>
PR tui/18388:
* NEWS: Mention tabset deprecation.
* tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
(update_tab_width): New function.
(tui_set_tab_width, tui_show_tab_width): New functions.
(tui_set_tab_width_command): Use update_tab_width.
(_initialize_tui_win): Move to end of file. Deprecate "tabset".
Add new "set tui tab-width" command.
* tui/tui-source.c (tui_set_source_content): Update.
* tui/tui-disasm.c (tui_set_disassem_content): Update.
* tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
Don't declare.
(tui_tab_width): Declare.
* tui/tui-data.c (default_tab_len, tui_default_tab_len)
(tui_set_default_tab_len): Remove.
gdb/doc/ChangeLog
2018-10-19 Tom Tromey <tom@tromey.com>
PR tui/18388:
* gdb.texinfo (TUI Commands): Remove tabset documentation.
(TUI Configuration): Document "set tui tab-width".
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 15 |
2 files changed, 14 insertions, 7 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 0cab170..4eee031 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-19 Tom Tromey <tom@tromey.com> + + PR tui/18388: + * gdb.texinfo (TUI Commands): Remove tabset documentation. + (TUI Configuration): Document "set tui tab-width". + 2018-10-09 Tom Tromey <tom@tromey.com> * python.texi (Inferiors In Python): Link to "Frames In Python", diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b0dc3bf..e985a7c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -26780,13 +26780,6 @@ decrease it. The @var{name} parameter can be one of @code{src} (the source window), @code{cmd} (the command window), @code{asm} (the disassembly window), or @code{regs} (the register display window). -@item tabset @var{nchars} -@kindex tabset -Set the width of tab stops to be @var{nchars} characters. This -setting affects the display of TAB characters in the source and -assembly windows. -@end table - @node TUI Configuration @section TUI Configuration Variables @cindex TUI configuration variables @@ -26838,6 +26831,14 @@ Use extra bright or bold mode. @item bold-standout Use extra bright or bold and standout mode. @end table + +@item set tui tab-width @var{nchars} +@kindex set tui tab-width +@kindex tabset +Set the width of tab stops to be @var{nchars} characters. This +setting affects the display of TAB characters in the source and +assembly windows. +@end table @end table @node Emacs |