From patchwork Sat Aug 5 10:20:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Kabatsayev X-Patchwork-Id: 21931 Received: (qmail 113102 invoked by alias); 5 Aug 2017 10:21:32 -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 111926 invoked by uid 89); 5 Aug 2017 10:21:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*m:gmail, letter X-HELO: mail-lf0-f65.google.com Received: from mail-lf0-f65.google.com (HELO mail-lf0-f65.google.com) (209.85.215.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 05 Aug 2017 10:21:30 +0000 Received: by mail-lf0-f65.google.com with SMTP id o85so2451349lff.1 for ; Sat, 05 Aug 2017 03:21:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gN4WjWsZdDlvTIzn6LI9PB+j4A/ewpax5H8vDK4x58w=; b=tTGfMJhu5DFcTQGSSVrezLBtqVJGguECTyWsmedi+B70/avJFnYHA4d1vb323w1VRs wD3q9vRMTiuZu5TgsPcgI7vuzGBrxpB0bndOC4gvn2icxbnI9gUxuTNxcgPgnl7SmNN3 EVE9wxXynouZJexBZTLDqE5l8Jycou33kxMMWxp6rp7W2AICsfDZKUbt5cc2cDceXDq8 CgIGlgSIOr5+shzIBjuXoO6UH5UTJlZJqZoK5ff80Jf9YLeAdoPQNdlG+TeRPNJ8WGV7 3dzm+dT+N00s/18EO5GSnOIK2xY8d0VhtYb/DWQhAIhas7HpwxDhTYM5zZbbMvpOvGJJ mhDQ== X-Gm-Message-State: AHYfb5jgDjFMHm187uFxnl8HqVYvd6QmeWUM0CtCqsdCZBS5KV3ZsiXy p+dUlLe/Rrljw98OKV8= X-Received: by 10.25.21.153 with SMTP id 25mr1608124lfv.109.1501928487864; Sat, 05 Aug 2017 03:21:27 -0700 (PDT) Received: from localhost.localdomain ([91.215.122.25]) by smtp.gmail.com with ESMTPSA id s72sm1077931lfi.72.2017.08.05.03.21.25 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 05 Aug 2017 03:21:26 -0700 (PDT) From: Ruslan Kabatsayev To: gdb-patches@sourceware.org Cc: Ruslan Kabatsayev Subject: [PATCH v3] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Date: Sat, 5 Aug 2017 13:20:55 +0300 Message-Id: <1501928455-3593-1-git-send-email-b7.10110111@gmail.com> X-IsSubscribed: yes Currently, "layout asm" is not so useful as "layout src" with Single-Key mode: you have to use multi-key commands like "ni" and "si" to do single-stepping. This patch adds, in addition to "next" and "step" commands, corresponding assembly-level ones - "nexti" and "stepi" - to Single-Key mode, with the shortcuts of "o" (from "step Over") and "i" (from "Step Into") respectively. gdb/ChangeLog: * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key mode command list. gdb/doc/ChangeLog: * gdb.texinfo (TUI Single Key Mode): Document the new shortcuts in Single-Key mode. --- gdb/doc/gdb.texinfo | 8 ++++++++ gdb/tui/tui.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 17b4c69..721819a 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -25415,6 +25415,10 @@ finish @item n next +@kindex o @r{(SingleKey TUI key)} +@item o +nexti. The shortcut letter @samp{o} stands for ``step Over''. + @kindex q @r{(SingleKey TUI key)} @item q exit the SingleKey mode. @@ -25427,6 +25431,10 @@ run @item s step +@kindex i @r{(SingleKey TUI key)} +@item i +stepi. The shortcut letter @samp{i} stands for ``step Into''. + @kindex u @r{(SingleKey TUI key)} @item u up diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index c918f3e..b77a885 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -75,8 +75,10 @@ static const struct tui_char_command tui_commands[] = { { 'd', "down" }, { 'f', "finish" }, { 'n', "next" }, + { 'o', "nexti" }, { 'r', "run" }, { 's', "step" }, + { 'i', "stepi" }, { 'u', "up" }, { 'v', "info locals" }, { 'w', "where" },