diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-22 17:48:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-22 17:48:55 +0000 |
commit | 522002f96cdfe306cb3385d075a5ae9f8381969e (patch) | |
tree | 5b2a008ec54e2c575eef5b913b553c8d063d286b /gdb/remote.c | |
parent | b583003e103cc0a55ff90a414045a3f647ab1a6e (diff) | |
download | gdb-522002f96cdfe306cb3385d075a5ae9f8381969e.zip gdb-522002f96cdfe306cb3385d075a5ae9f8381969e.tar.gz gdb-522002f96cdfe306cb3385d075a5ae9f8381969e.tar.bz2 |
* defs.h (quit_flag): Don't declare.
(clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
(QUIT): Use new functions.
* event-top.c (command_handler): Use clear_quit_flag.
(handle_sigint): Use set_quit_flag.
(async_request_quit): Use check_quit_flag. Don't check
immediate_quit.
* exceptions.c (throw_exception): Use clear_quit_flag.
* main.c (captured_main): Use clear_quit_flag.
* python/python.c (clear_quit_flag, set_quit_flag)
(check_quit_flag): New functions.
* remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
clear_quit_flag.
* remote.c (remote_wait_as): Use check_quit_flag,
clear_quit_flag.
(remote_start_remote): Call QUIT.
* symfile.c (load_progress): Use check_quit_flag.
* top.c (command_loop): Use clear_quit_flag.
(command_line_input): Call QUIT.
* utils.c (quit_flag): Conditionally define.
(clear_quit_flag, check_quit_flag, set_quit_flag): New
functions.
(prompt_for_continue): Call QUIT. Use quit, not
async_request_quit.
* remote-mips.c (mips_expect_timeout): Call QUIT.
* monitor.c (monitor_expect): Call QUIT.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 3696709..2db2c9d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3271,6 +3271,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) char *wait_status = NULL; immediate_quit++; /* Allow user to interrupt it. */ + QUIT; if (interrupt_on_connect) send_interrupt_sequence (); @@ -5714,9 +5715,9 @@ remote_wait_as (ptid_t ptid, struct target_waitstatus *status, int options) ofunc = signal (SIGINT, remote_interrupt); /* If the user hit C-c before this packet, or between packets, pretend that it was hit right here. */ - if (quit_flag) + if (check_quit_flag ()) { - quit_flag = 0; + clear_quit_flag (); remote_interrupt (SIGINT); } } |