From patchwork Sat Mar 9 11:28:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 31798 Received: (qmail 42098 invoked by alias); 9 Mar 2019 11:28:38 -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 42088 invoked by uid 89); 9 Mar 2019 11:28:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 required=5.0 tests=AWL, 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.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mailsec117.isp.belgacom.be Received: from mailsec117.isp.belgacom.be (HELO mailsec117.isp.belgacom.be) (195.238.20.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Mar 2019 11:28:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1552130917; x=1583666917; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AVu+KW+KSQBh33+HArGXRxmd4qEUVOO1BKclB093Itw=; b=XTX91Kepmd+4BgIdPYG3hM39tlY37pTd7+iWNzT6+6PvOAgvfZFXmx1E iH2ZBRc9oxydzFB73sbLpfTM+lQE1A==; Received: from 147.122-130-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.130.122.147]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 09 Mar 2019 12:28:35 +0100 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [PUSHED_OBVIOUS] Ensure 'help set/show print inferior-events' shows the example events. Date: Sat, 9 Mar 2019 12:28:28 +0100 Message-Id: <20190309112828.19450-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes Without this patch, the help stops after 'e.g.' : (gdb) apropos \(inferior\|thread\) event set print inferior-events -- Set printing of inferior events (e.g. set print thread-events -- Set printing of thread events (such as thread start and exit) show print inferior-events -- Show printing of inferior events (e.g. show print thread-events -- Show printing of thread events (such as thread start and exit) Using the same notation as for the thread evenets (i.e. 'such as') gives: (gdb) apropos \(inferior\|thread\) event set print inferior-events -- Set printing of inferior events (such as inferior start and exit) set print thread-events -- Set printing of thread events (such as thread start and exit) show print inferior-events -- Show printing of inferior events (such as inferior start and exit) show print thread-events -- Show printing of thread events (such as thread start and exit) --- gdb/ChangeLog | 5 +++++ gdb/inferior.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bb10c7d447..77bad3830c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-02-27 Philippe Waroquiers + + * inferior.c (initialize_inferiors): Ensure 'help set/show print + inferior-events' shows the example events. + 2019-03-08 Eli Zaretskii Support styling on native MS-Windows console diff --git a/gdb/inferior.c b/gdb/inferior.c index b13d8f3bff..cb8063ba03 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -930,8 +930,8 @@ The new inferior ID must be currently known."), add_setshow_boolean_cmd ("inferior-events", no_class, &print_inferior_events, _("\ -Set printing of inferior events (e.g., inferior start and exit)."), _("\ -Show printing of inferior events (e.g., inferior start and exit)."), NULL, +Set printing of inferior events (such as inferior start and exit)."), _("\ +Show printing of inferior events (such as inferior start and exit)."), NULL, NULL, show_print_inferior_events, &setprintlist, &showprintlist);