aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-09 11:38:05 -0700
committerTom Tromey <tom@tromey.com>2019-11-11 16:58:30 -0700
commitc71acd153e7c48284f7c47b9f15467f9a6b77e78 (patch)
tree6d027c6b37058a2fc024e1046bab565191c6eace /gdb
parent7b7b9424d3f94ba5595c4e164b67c0f621146dfe (diff)
downloadgdb-c71acd153e7c48284f7c47b9f15467f9a6b77e78.zip
gdb-c71acd153e7c48284f7c47b9f15467f9a6b77e78.tar.gz
gdb-c71acd153e7c48284f7c47b9f15467f9a6b77e78.tar.bz2
Document operate-and-get-next
This adds some documentation for the operate-and-get-next readline function that gdb supplies. The text is largely taken from the Bash manual. gdb/doc/ChangeLog 2019-11-11 Tom Tromey <tom@tromey.com> * gdb.texinfo (Editing): Document operate-and-get-next. Change-Id: I9adb16d9ce84bfbda5fe8a2828f668ea878c080c
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo7
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index dcce6fa..3c77d4f 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-11 Tom Tromey <tom@tromey.com>
+
+ * gdb.texinfo (Editing): Document operate-and-get-next.
+
2019-11-11 Tom Tromey <tromey@adacore.com>
* gdb.texinfo (Host I/O Packets): Fix typo in "vFile:pwrite".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index e702b29..05accca 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -25139,6 +25139,13 @@ encouraged to read that chapter.
@value{GDBN} sets the Readline application name to @samp{gdb}. This
is useful for conditions in @file{.inputrc}.
+@cindex operate-and-get-next
+@value{GDBN} defines a bindable Readline command,
+@code{operate-and-get-next}. This is bound to @kbd{C-o} by default.
+This command accepts the current line for execution and fetches the
+next line relative to the current line from the history for editing.
+Any argument is ignored.
+
@node Command History
@section Command History
@cindex command history