This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] Prompt user to report bugs
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>, Mark Kettenis <mark dot kettenis at xs4all dot nl>, Paul Koning <Paul_Koning at dell dot com>, Tom Tromey <tromey at redhat dot com>, Yao Qi <yao at codesourcery dot com>
- Date: Tue, 27 May 2014 15:42:46 +0100
- Subject: [COMMITTED PATCH] Prompt user to report bugs
- Authentication-results: sourceware.org; auth=none
- References: <20140514110742 dot GA25550 at blade dot nx>
Hi all,
I just committed this patch.
Thanks,
Gary
--
2014-05-27 Gary Benson <gbenson@redhat.com>
* 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))