Document and extend readline-bindable functions
authorTom Tromey <tom@tromey.com>
Sat, 9 Nov 2019 18:54:39 +0000 (11:54 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 11 Nov 2019 23:58:30 +0000 (16:58 -0700)
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

gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/tui/tui.c

index edd3e9013b26a2eda36a4a48c62c2b8af48aa938..e8104f3e7cd52a63e05521703388ed8607b186c4 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-11  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_initialize_readline): Add new bindable readline
+       functions.
+
 2019-11-11  Christian Biesinger  <cbiesinger@google.com>
 
        * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
index 3c77d4f8b72a09967944eac4c3dd941c810bfca9..0da4c9d83911e762794c3eb8975ce844d5dcf534 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-11  Tom Tromey  <tom@tromey.com>
+
+       * gdb.texinfo (TUI Keys): Document readline function names.
+
 2019-11-11  Tom Tromey  <tom@tromey.com>
 
        * gdb.texinfo (Editing): Document operate-and-get-next.
index 05accca47755afe988b771d5947b58bedb839a20..398167f9bb5a4cf32db14cb54cff431b4272f8f5 100644 (file)
@@ -27621,6 +27621,9 @@ its standard mode, writing on the terminal directly.  When reentering
 the TUI mode, control is given back to the curses windows.
 The screen is then refreshed.
 
+This key binding uses the bindable Readline function
+@code{tui-switch-mode}.
+
 @kindex C-x 1
 @item C-x 1
 Use a TUI layout with only one window.  The layout will
@@ -27629,6 +27632,9 @@ is not active, it will switch to the TUI mode.
 
 Think of this key binding as the Emacs @kbd{C-x 1} binding.
 
+This key binding uses the bindable Readline function
+@code{tui-delete-other-windows}.
+
 @kindex C-x 2
 @item C-x 2
 Use a TUI layout with at least two windows.  When the current
@@ -27638,6 +27644,9 @@ previous layout and the new one.
 
 Think of it as the Emacs @kbd{C-x 2} binding.
 
+This key binding uses the bindable Readline function
+@code{tui-change-windows}.
+
 @kindex C-x o
 @item C-x o
 Change the active window.  The TUI associates several key bindings
@@ -27646,10 +27655,16 @@ gives the focus to the next TUI window.
 
 Think of it as the Emacs @kbd{C-x o} binding.
 
+This key binding uses the bindable Readline function
+@code{tui-other-window}.
+
 @kindex C-x s
 @item C-x s
 Switch in and out of the TUI SingleKey mode that binds single
 keys to @value{GDBN} commands (@pxref{TUI Single Key Mode}).
+
+This key binding uses the bindable Readline function
+@code{next-keymap}.
 @end table
 
 The following key bindings only work in the TUI mode:
index 15683517842155f278262982d8dabc2b8e33e07a..3f5ab415de9ce02801d460998bf7ab741013b072 100644 (file)
@@ -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 ();
 
This page took 0.050911 seconds and 4 git commands to generate.