Prompt the user to file bug reports for internal errors and warnings.
authorGary Benson <gbenson@redhat.com>
Tue, 27 May 2014 14:30:58 +0000 (15:30 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 27 May 2014 14:30:58 +0000 (15:30 +0100)
2014-05-27  Gary Benson  <gbenson@redhat.com>

* utils.c (internal_vproblem): Prompt for a bug report.

gdb/ChangeLog
gdb/utils.c

index 088076955fc29961ec3009168803f05236ed86d0..487ee85bec629e1481db0ebb4f3c4ca969c81e82 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-27  Gary Benson  <gbenson@redhat.com>
+
+       * utils.c (internal_vproblem): Prompt for a bug report.
+
 2014-05-26  Andy Wingo  <wingo@igalia.com>
 
        * guile/scm-arch.c (arscm_mark_arch_smob):
index a8a7cb3c712411e16fc7a4588160d7d2d0120020..86df1c7f6a4db6366e644ed667894866b71d0cb9 100644 (file)
@@ -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))