From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18356 invoked by alias); 12 Jun 2013 19:50:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18346 invoked by uid 89); 12 Jun 2013 19:50:42 -0000 X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 12 Jun 2013 19:50:41 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5CJoexI028917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Jun 2013 15:50:40 -0400 Received: from localhost.localdomain (ovpn-112-22.ams2.redhat.com [10.36.112.22]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5CJodYq001002 for ; Wed, 12 Jun 2013 15:50:39 -0400 Message-ID: <51B8D10E.5030409@redhat.com> Date: Wed, 12 Jun 2013 22:01:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [rfc] Add help text to start-up text Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00293.txt.bz2 This patch proposes to add a few items to the GDB start-up text to provide some indication on where the user can find help. I did not add the wiki and manual URLs to configure et al as I am not sure that is needed (I guess GDB packagers might have an opinion here). Also I am not sure if anything actually parses the initial output of the GDB start-up text and if adding these lines will affect that. So I am seeking comments. What do you think? Cheers Phil 2013-06-12 Phil Muldoon * top.c (print_gdb_version): Add help, apropos description and urls to wiki and online documentation. -- diff --git a/gdb/top.c b/gdb/top.c index 8ac756f..4c85b51 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1156,8 +1156,16 @@ Type \"show configuration\" for configuration details."); { fprintf_filtered (stream, _("\nFor bug reporting instructions, please see:\n")); - fprintf_filtered (stream, "%s.", REPORT_BUGS_TO); + fprintf_filtered (stream, "%s.\n\n", REPORT_BUGS_TO); } + + fprintf_filtered (stream, _("The GDB manual can be found online at:\n\ +\n")); + fprintf_filtered (stream, _("The GDB wiki can be found online at:\n\ +\n\n")); + fprintf_filtered (stream, _("For help, type 'help'.\n")); + fprintf_filtered (stream, _("Type 'apropos word' to search for \ +commands related to 'word'.\n")); } /* Print the details of GDB build-time configuration. */