From patchwork Wed Aug 16 18:49:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Kabatsayev X-Patchwork-Id: 22166 Received: (qmail 48408 invoked by alias); 16 Aug 2017 18:49:53 -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 48367 invoked by uid 89); 16 Aug 2017 18:49:45 -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 X-HELO: mail-lf0-f48.google.com Received: from mail-lf0-f48.google.com (HELO mail-lf0-f48.google.com) (209.85.215.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 Aug 2017 18:49:44 +0000 Received: by mail-lf0-f48.google.com with SMTP id y15so20294975lfd.5 for ; Wed, 16 Aug 2017 11:49:43 -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=XmAz8yyWDNr3J8CxA7D+y6itYHT8PAnQuka9TS9urLk=; b=bEaG6gCHRkkYABfGIhrdvMomUr1huwAEhkqpqIDvKeoxPn54AOdBDoRtGqpzfYVKmy a3LcnrOBNlTTTSp0Vfyn0ERKOpm7/RR5l6hZMg5vJZdgIn8GtXVufn/SsMqLl4hcelYF u/BmePJDCMJ1FmkHhg7k2xk06IWF+0/2Vtn6nLCiC7c0m6zWSUcW0X7RunNCGiB3Edu9 x9Ae4eOgLNg8LfzJn8MGgjyenSrTuJJndaJa7xXgCr4K7hZ+4fJEKjmKYnsL0+xKmbNY 1fSX+CUSekUFlaxKqael/aYcpjFeNZqpmkvXcmfNrjRhxw+bkbe8sC4mN8cOBDpdwy59 EmDA== X-Gm-Message-State: AHYfb5jp69sFnzeoGKYWVWyWwbUSUuaewLDWWsurKDFdXbZMfht8BOqS CNd56cVt+awfGrBV X-Received: by 10.46.82.90 with SMTP id g87mr930476ljb.56.1502909381641; Wed, 16 Aug 2017 11:49:41 -0700 (PDT) Received: from localhost.localdomain ([91.215.122.25]) by smtp.gmail.com with ESMTPSA id y30sm337339ljd.91.2017.08.16.11.49.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Aug 2017 11:49:40 -0700 (PDT) From: Ruslan Kabatsayev To: gdb-patches@sourceware.org Cc: Ruslan Kabatsayev Subject: [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Date: Wed, 16 Aug 2017 21:49:34 +0300 Message-Id: <1502909374-20367-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/ChangeLog | 5 +++++ gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 8 ++++++++ gdb/tui/tui.c | 2 ++ 4 files changed, 20 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea5dd32..dc184c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-08-16 Ruslan Kabatsayev + + * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key + mode command list. + 2017-08-15 Stafford Horne * MAINTAINERS (Write After Approval): Add Stafford Horne. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4b40698..8e3e5ce 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2017-08-16 Ruslan Kabatsayev + + * gdb.texinfo (TUI Single Key Mode): Document the new shortcuts in + Single-Key mode. + 2017-08-12 Sergio Durigan Junior PR gdb/21925 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7528183..0d39a55 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" },