Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Prompt user to report bugs
@ 2014-05-14 11:07 Gary Benson
  2014-05-14 11:22 ` Mark Kettenis
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Gary Benson @ 2014-05-14 11:07 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

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  <gbenson@redhat.com>

	* 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))


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-27 14:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 11:07 [PATCH] Prompt user to report bugs Gary Benson
2014-05-14 11:22 ` Mark Kettenis
2014-05-14 12:39 ` Yao Qi
2014-05-14 13:15   ` Gary Benson
2014-05-14 20:14 ` Tom Tromey
2014-05-14 21:05 ` Doug Evans
2014-05-14 21:11   ` Paul_Koning
2014-05-14 22:24     ` Doug Evans
2014-05-15 11:39       ` Gary Benson
2014-05-15 17:10         ` Doug Evans
2014-05-15 10:07     ` Pierre Muller
2014-05-15 11:38       ` Gary Benson
2014-05-27 14:43 ` [COMMITTED PATCH] " Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox