aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-04-12 16:49:30 +0100
committerPedro Alves <palves@redhat.com>2016-04-12 16:54:49 +0100
commitabf009ef94d2f89b09767cce30bcf99224c1a0a9 (patch)
tree06df8019292e739ad5a2436be39bcccf876b7a71 /gdb/remote.c
parent6eddd09a12e752c08f55e62fbb30d42058a6b1ea (diff)
downloadgdb-abf009ef94d2f89b09767cce30bcf99224c1a0a9.zip
gdb-abf009ef94d2f89b09767cce30bcf99224c1a0a9.tar.gz
gdb-abf009ef94d2f89b09767cce30bcf99224c1a0a9.tar.bz2
Don't call clear_quit_flag after check_quit_flag
Obviously not necessary since check_quit_flag clears the flag as side effect. gdb/ChangeLog: 2016-04-12 Pedro Alves <palves@redhat.com> * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag. * remote.c (remote_wait_as): Don't call clear_quit_flag.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 5c407b6..443beac 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6937,10 +6937,7 @@ remote_wait_as (ptid_t ptid, struct target_waitstatus *status, int options)
/* If the user hit C-c before this packet, or between packets,
pretend that it was hit right here. */
if (check_quit_flag ())
- {
- clear_quit_flag ();
- sync_remote_interrupt (SIGINT);
- }
+ sync_remote_interrupt (SIGINT);
}
/* FIXME: cagney/1999-09-27: If we're in async mode we should