From patchwork Sat Oct 20 21:04:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 29821 Received: (qmail 86859 invoked by alias); 20 Oct 2018 21:04:33 -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 86850 invoked by uid 89); 20 Oct 2018 21:04:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mailsec116.isp.belgacom.be Received: from mailsec116.isp.belgacom.be (HELO mailsec116.isp.belgacom.be) (195.238.20.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 20 Oct 2018 21:04:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1540069470; x=1571605470; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HM4pABtTXud1npGAwtuFMCCcqqwWU+FiuZYB2l4cQRY=; b=Q1syBFE6cHPoG6GHcjzb/eEay+8dOEmtLRG7B55UKdVOQXgL5MUpWxiq /0pjM7NDu0vWekcygb5yqOAKjQyVfw==; Received: from 150.148-129-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.129.148.150]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 20 Oct 2018 23:04:27 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [OBVIOUS_PATCH] [PUSHED/OBVIOUS] ensure help set print type gives the correct help. Date: Sat, 20 Oct 2018 23:04:21 +0200 Message-Id: <20181020210421.14852-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes Without this patch: (gdb) help set print type Generic command for setting how types print. List of show print type subcommands: show print type methods -- Set printing of methods defined in classes ... With this patch: (gdb) h set print type Generic command for setting how types print. List of set print type subcommands: set print type methods -- Set printing of methods defined in classes ... --- gdb/ChangeLog | 5 +++++ gdb/typeprint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c703922b1d..d3653d78cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-10-19 Philippe Waroquiers + + * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg + in add_prefix_cmd of set print type. + 2018-10-19 Tom Tromey PR tui/18388: diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 7a0b7627ed..393d825fe5 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -847,7 +847,7 @@ Only one level of typedefs is unrolled. See also \"ptype\".")); &showprinttypelist, "show print type ", 0, &showprintlist); add_prefix_cmd ("type", no_class, set_print_type, _("Generic command for setting how types print."), - &setprinttypelist, "show print type ", 0, &setprintlist); + &setprinttypelist, "set print type ", 0, &setprintlist); add_setshow_boolean_cmd ("methods", no_class, &print_methods, _("\