remote: allow aborting long operations (e.g., file transfers)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 49f491d9681e8ac2375ff38bbc5e058cbedab673..a8735a28b84e34f3058ae14a05e924a1b385598b 100644 (file)
@@ -1,3 +1,26 @@
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * defs.h (maybe_quit): Declare.
+       (QUIT): Now calls maybe_quit.
+       * event-loop.c (clear_async_signal_handler)
+       (async_signal_handler_is_marked): New functions.
+       * event-loop.h (async_signal_handler_is_marked)
+       (clear_async_signal_handler): New declarations.
+       * remote.c (remote_check_pending_interrupt): New function.
+       (interrupt_query): Use make_cleanup_restore_target_terminal.  No
+       longer check whether the target is async.  If waiting for a stop
+       reply, and a Ctrl-C as been sent to the target, offer to
+       disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
+       Otherwise do not disconnect and throw a quit.
+       (_initialize_remote): Install remote_check_pending_interrupt as
+       to_check_pending_interrupt.
+       * target.c (target_check_pending_interrupt): New function.
+       * target.h (struct target_ops) <to_check_pending_interrupt>: New
+       field.
+       (target_check_pending_interrupt): New declaration.
+       * utils.c (maybe_quit): New function.
+       * target-delegates.c: Regenerate.
+
 2015-08-25  Yao Qi  <yao.qi@linaro.org>
 
        * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
This page took 0.023575 seconds and 4 git commands to generate.