From patchwork Thu Jul 13 06:07:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Kabatsayev X-Patchwork-Id: 21583 Received: (qmail 102093 invoked by alias); 13 Jul 2017 06:13:23 -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 69757 invoked by uid 89); 13 Jul 2017 06:11:54 -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_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:209.85.215.68, Hx-spam-relays-external:209.85.215.68 X-HELO: mail-lf0-f68.google.com Received: from mail-lf0-f68.google.com (HELO mail-lf0-f68.google.com) (209.85.215.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Jul 2017 06:08:05 +0000 Received: by mail-lf0-f68.google.com with SMTP id g21so4890223lfk.1 for ; Wed, 12 Jul 2017 23:08:04 -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=wu6m9jNwqBjeAH9THMG3yNaVzaM9yVNC8QxAcPx7wRA=; b=QPvHQxY6cqBa4KDcUBWQHcLDIu75wogOLfeitYUWp2tObSuq7Vpjndwc4VCQwuXzDy VfDiyJZs1FMrYKH005noO8ADaW0UqQ/BDPx5r7khj98eIAIhq5+1MkOBjCfVSiOX3FCR r7AX2cR7YduGcctWAdY8IFygZht3y1vb2U44PmaEfgX03j1CprxwKxTY6+EBO3ypqUvC WRHRCVpAQGjPPcvDe1V8oVMX8NZQYwlDWinpw6sAist+uWAamEDHyMky1VxOrlbktHhc MLubM+XUl0krwar/oxgilL1F8o62+fyzgVfsITDQf0ZouHfHY+L34xQXVW7AaT8ToI+V stPw== X-Gm-Message-State: AIVw1133Urxc/vqfqtEy2AXBLit/fH00DDxDmlegi4XTONiI5oDLC3er 2C/x9msdcAzqdZTg X-Received: by 10.25.56.13 with SMTP id f13mr675230lfa.167.1499926082753; Wed, 12 Jul 2017 23:08:02 -0700 (PDT) Received: from localhost.localdomain ([91.215.122.25]) by smtp.gmail.com with ESMTPSA id 28sm926249ljw.33.2017.07.12.23.08.01 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 12 Jul 2017 23:08:01 -0700 (PDT) From: Ruslan Kabatsayev To: gdb-patches@sourceware.org Cc: Ruslan Kabatsayev Subject: [PATCH] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Date: Thu, 13 Jul 2017 09:07:50 +0300 Message-Id: <1499926070-13827-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 "N" and "S" 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 c167a86..56163ab 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -25415,6 +25415,10 @@ finish @item n next +@kindex N @r{(SingleKey TUI key)} +@item N +nexti + @kindex q @r{(SingleKey TUI key)} @item q exit the SingleKey mode. @@ -25427,6 +25431,10 @@ run @item s step +@kindex S @r{(SingleKey TUI key)} +@item S +stepi + @kindex u @r{(SingleKey TUI key)} @item u up diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index c918f3e..dbd86e8 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" }, + { 'N', "nexti" }, { 'r', "run" }, { 's', "step" }, + { 'S', "stepi" }, { 'u', "up" }, { 'v', "info locals" }, { 'w', "where" },