aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote-fileio.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 92a664d..e532a12 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2016-08-05 Pedro Alves <palves@redhat.com>
+ PR remote/20398
+ * remote-fileio.c (remote_fileio_quit_handler): Check the quit
+ flag before calling quit.
+
+2016-08-05 Pedro Alves <palves@redhat.com>
+
* NEWS: Mention that GDB and GDBserver build with a C++ compiler
by default.
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 93121aa..e35bd5b 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -308,7 +308,8 @@ static quit_handler_ftype *remote_fileio_o_quit_handler;
static void
remote_fileio_quit_handler (void)
{
- quit ();
+ if (check_quit_flag ())
+ quit ();
}
static void