From abf009ef94d2f89b09767cce30bcf99224c1a0a9 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 12 Apr 2016 16:49:30 +0100 Subject: 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 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag. * remote.c (remote_wait_as): Don't call clear_quit_flag. --- gdb/remote-sim.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/remote-sim.c') diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 8489eb6..11d36eb 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -955,10 +955,7 @@ gdb_os_poll_quit (host_callback *p) deprecated_ui_loop_hook (0); if (check_quit_flag ()) /* gdb's idea of quit */ - { - clear_quit_flag (); /* we've stolen it */ - return 1; - } + return 1; return 0; } -- cgit v1.1