From patchwork Fri Aug 4 19:27:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Kabatsayev X-Patchwork-Id: 21924 Received: (qmail 2574 invoked by alias); 4 Aug 2017 19:28:11 -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 2177 invoked by uid 89); 4 Aug 2017 19:28:10 -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=Over, H*m:gmail, H*MI:3067, H*m:3067 X-HELO: mail-lf0-f67.google.com Received: from mail-lf0-f67.google.com (HELO mail-lf0-f67.google.com) (209.85.215.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Aug 2017 19:28:09 +0000 Received: by mail-lf0-f67.google.com with SMTP id 65so1669633lfa.0 for ; Fri, 04 Aug 2017 12:28:08 -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=9jbCPN1YoN8+j85HP73VZxA8v7fbGBh9Y7kMNvFqtD4=; b=hVMNH5ASyRhVMvN9t0Onv+JFOrmhmxQfB0e2pKxCTs1W3xN28ctMWJH7XATOjjNi01 W+Q8Pmh6GAmoB43UrcMaHmKiOrlGsMEKllUmBJN25SR2tQbMENUKZQNh0lU8NDeaAV6d XJd1wpw5pWmMPLh7GVC5YTRRxBWyo5qzPD3ypAyoXNAZzkfoCPHa9QLLpWQK1ePAoQ8Y 8hIvjF+EEvUqfX8YyRuaMoSyzjnKj1zmkxv/RIg6VoBuEl9U2UrZbennK+bKjJ6hB4YB WEcAd1GGaU7OTee7M45ho2eJhCocNWvfl/AcrL621SJ3djChA6gE9hsx3ZKEPKoY3DV/ QLOw== X-Gm-Message-State: AIVw113c7EgAET5mnJOkfkKf9oBijhLp0Y7JSy6YrNTa4SMIOEu3EqF5 9BfKe0DX3SXKcVrV X-Received: by 10.46.71.2 with SMTP id u2mr1269959lja.73.1501874886761; Fri, 04 Aug 2017 12:28:06 -0700 (PDT) Received: from localhost.localdomain ([91.215.122.25]) by smtp.gmail.com with ESMTPSA id m27sm617864lfi.80.2017.08.04.12.28.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 04 Aug 2017 12:28:05 -0700 (PDT) From: b7.10110111@gmail.com To: gdb-patches@sourceware.org Cc: Ruslan Kabatsayev Subject: [PATCH v2] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Date: Fri, 4 Aug 2017 22:27:18 +0300 Message-Id: <1501874838-3067-1-git-send-email-b7.10110111@gmail.com> X-IsSubscribed: yes From: Ruslan Kabatsayev 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: Add "nexti" and "stepi" to the tui_commands list * doc/gdb.texinfo: 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..2bb794a 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 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 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" },