From patchwork Tue May 27 14:42:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 1170 Received: (qmail 21281 invoked by alias); 27 May 2014 14:43:48 -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 21270 invoked by uid 89); 27 May 2014 14:43:47 -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; Tue, 27 May 2014 14:43:45 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4REheIp018124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 May 2014 10:43:40 -0400 Received: from blade.nx (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4REhcvG005937; Tue, 27 May 2014 10:43:39 -0400 Received: by blade.nx (Postfix, from userid 1000) id 38155262416; Tue, 27 May 2014 15:42:46 +0100 (BST) Date: Tue, 27 May 2014 15:42:46 +0100 From: Gary Benson To: gdb-patches@sourceware.org Cc: Doug Evans , Mark Kettenis , Paul Koning , Tom Tromey , Yao Qi Subject: [COMMITTED PATCH] Prompt user to report bugs Message-ID: <20140527144246.GA6646@blade.nx> References: <20140514110742.GA25550@blade.nx> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140514110742.GA25550@blade.nx> X-IsSubscribed: yes Hi all, I just committed this patch. Thanks, Gary --- 2014-05-27 Gary Benson * utils.c (internal_vproblem): Prompt for a bug report. diff --git a/gdb/utils.c b/gdb/utils.c index a8a7cb3..86df1c7 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -746,6 +746,12 @@ 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]) + fprintf_unfiltered (gdb_stderr, _(" For instructions, see:\n%s."), + REPORT_BUGS_TO); + fputs_unfiltered ("\n\n", gdb_stderr); + if (problem->should_dump_core == internal_problem_ask) { if (!can_dump_core (reason))