diff options
author | Tom Tromey <tom@tromey.com> | 2019-11-09 11:54:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-11-11 16:58:30 -0700 |
commit | c86d74cc7d442414a62752187aa10f49f0ac0de7 (patch) | |
tree | ff96279c9408b2e2edcf58b18864191320cbfae7 /gdb/tui/tui.c | |
parent | c71acd153e7c48284f7c47b9f15467f9a6b77e78 (diff) | |
download | gdb-c86d74cc7d442414a62752187aa10f49f0ac0de7.zip gdb-c86d74cc7d442414a62752187aa10f49f0ac0de7.tar.gz gdb-c86d74cc7d442414a62752187aa10f49f0ac0de7.tar.bz2 |
Document and extend readline-bindable functions
This adds readline-bindable function names to a few gdb functions that
already had key bindings. This lets users change the bindings.
This also removes the gdb-command function. Due to how this function
is implemented, it doesn't make sense to allow binding it.
Finally, this updates the documentation to reflect these changes.
gdb/ChangeLog
2019-11-11 Tom Tromey <tom@tromey.com>
* tui/tui.c (tui_initialize_readline): Add new bindable readline
functions.
gdb/doc/ChangeLog
2019-11-11 Tom Tromey <tom@tromey.com>
* gdb.texinfo (TUI Keys): Document readline function names.
Change-Id: I2233779b7aefe372f19bd03c8f325733c3385e72
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r-- | gdb/tui/tui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 1568351..3f5ab41 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -330,8 +330,10 @@ tui_initialize_readline (void) Keymap tui_ctlx_keymap; rl_add_defun ("tui-switch-mode", tui_rl_switch_mode, -1); - rl_add_defun ("gdb-command", tui_rl_command_key, -1); rl_add_defun ("next-keymap", tui_rl_next_keymap, -1); + rl_add_defun ("tui-delete-other-windows", tui_rl_delete_other_windows, -1); + rl_add_defun ("tui-change-windows", tui_rl_change_windows, -1); + rl_add_defun ("tui-other-window", tui_rl_other_window, -1); tui_keymap = rl_make_bare_keymap (); |