From patchwork Tue Nov 12 00:00:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 35814 Received: (qmail 106543 invoked by alias); 12 Nov 2019 00:00:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 105958 invoked by uid 89); 12 Nov 2019 00:00:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=bindable X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2019 00:00:25 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id CAAA220E5D; Mon, 11 Nov 2019 19:00:09 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id A5F2B203AF; Mon, 11 Nov 2019 19:00:08 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 6BA7C20AF6; Mon, 11 Nov 2019 19:00:08 -0500 (EST) X-Gerrit-PatchSet: 2 Date: Mon, 11 Nov 2019 19:00:07 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Tom Tromey , gdb-patches@sourceware.org Auto-Submitted: auto-generated X-Gerrit-MessageType: newpatchset Subject: [pushed] Document operate-and-get-next X-Gerrit-Change-Id: I9adb16d9ce84bfbda5fe8a2828f668ea878c080c X-Gerrit-Change-Number: 602 X-Gerrit-ChangeURL: X-Gerrit-Commit: c71acd153e7c48284f7c47b9f15467f9a6b77e78 In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, tromey@sourceware.org, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-76-gf8b6da0ab5 Message-Id: <20191112000008.6BA7C20AF6@gnutoolchain-gerrit.osci.io> The original change was created by Tom Tromey. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/602 ...................................................................... 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 * gdb.texinfo (Editing): Document operate-and-get-next. Change-Id: I9adb16d9ce84bfbda5fe8a2828f668ea878c080c --- M gdb/doc/ChangeLog M gdb/doc/gdb.texinfo 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 + + * gdb.texinfo (Editing): Document operate-and-get-next. + 2019-11-11 Tom Tromey * 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 @@ @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