From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24634 invoked by alias); 14 May 2014 11:07:50 -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 24623 invoked by uid 89); 14 May 2014 11:07:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 May 2014 11:07:49 +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 s4EB7liT001966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 May 2014 07:07:48 -0400 Received: from blade.nx (ovpn-116-68.ams2.redhat.com [10.36.116.68]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4EB7i76022401; Wed, 14 May 2014 07:07:46 -0400 Received: by blade.nx (Postfix, from userid 1000) id 6F43F26234A; Wed, 14 May 2014 12:07:42 +0100 (BST) Date: Wed, 14 May 2014 11:07:00 -0000 From: Gary Benson To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Prompt user to report bugs Message-ID: <20140514110742.GA25550@blade.nx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00198.txt.bz2 Hi all, This patch prints a couple of extra lines in internal_vproblem to prompt the user to report the bug that's just happened. Ok to commit? Thanks, Gary -- 2014-05-14 Gary Benson * utils.c (internal_vproblem): Prompt the user to file a report. diff --git a/gdb/utils.c b/gdb/utils.c index a8a7cb3..905ce6d 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -746,6 +746,14 @@ internal_vproblem (struct internal_problem *problem, else internal_error (__FILE__, __LINE__, _("bad switch")); + fputs_unfiltered (_("\nThis is a bug, please report it."), gdb_stderr); + if (REPORT_BUGS_TO[0]) + { + fputs_unfiltered (_(" For instructions, see:\n"), gdb_stderr); + fprintf_unfiltered (gdb_stderr, _("%s."), REPORT_BUGS_TO); + } + fputs_unfiltered ("\n\n", gdb_stderr); + if (problem->should_dump_core == internal_problem_ask) { if (!can_dump_core (reason))