summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/utils.c11
2 files changed, 9 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d8d427f3af8..59a3db7e7d1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-19 Gary Benson <gbenson@redhat.com>
+
+ * utils.c (internal_vproblem): Always print the message.
+
2014-08-18 Doug Evans <dje@google.com>
* ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
diff --git a/gdb/utils.c b/gdb/utils.c
index 34b842e9b2c..61f0abc5ff6 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -733,18 +733,17 @@ internal_vproblem (struct internal_problem *problem,
make_cleanup (xfree, reason);
}
+ /* Emit the message unless query will emit it below. */
+ if (problem->should_quit != internal_problem_ask || !confirm)
+ fprintf_unfiltered (gdb_stderr, "%s\n", reason);
+
if (problem->should_quit == internal_problem_ask)
{
/* Default (yes/batch case) is to quit GDB. When in batch mode
this lessens the likelihood of GDB going into an infinite
loop. */
if (!confirm)
- {
- /* Emit the message and quit. */
- fputs_unfiltered (reason, gdb_stderr);
- fputs_unfiltered ("\n", gdb_stderr);
- quit_p = 1;
- }
+ quit_p = 1;
else
quit_p = query (_("%s\nQuit this debugging session? "), reason);
}