aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-05-27 15:30:58 +0100
committerGary Benson <gbenson@redhat.com>2014-05-27 15:30:58 +0100
commitadd6c04d828e0f68ded81cfeec0fe74ca0107881 (patch)
treeb750fbddf63aca8ec4d80c9e7a0f2d0f253fce37 /gdb
parent92c48fc5e7f59ba3813cba60277f5c3f12bfb574 (diff)
downloadgdb-add6c04d828e0f68ded81cfeec0fe74ca0107881.zip
gdb-add6c04d828e0f68ded81cfeec0fe74ca0107881.tar.gz
gdb-add6c04d828e0f68ded81cfeec0fe74ca0107881.tar.bz2
Prompt the user to file bug reports for internal errors and warnings.
2014-05-27 Gary Benson <gbenson@redhat.com> * utils.c (internal_vproblem): Prompt for a bug report.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/utils.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0880769..487ee85 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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):
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))