Don't call clear_quit_flag in captured_main
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:49:30 +0000 (16:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:55:52 +0000 (16:55 +0100)
This call seems pointless.  For instance, a SIGINT handler is only
installed later on.  And if wasn't, I can't see why we'd want to lose
a Ctrl-C request.

Getting rid of this allows getting rid of clear_quit_flag.

gdb/ChangeLog:
2016-04-12  Pedro Alves  <palves@redhat.com>

* main.c (captured_main): Don't clear the quit flag.

gdb/ChangeLog
gdb/main.c

index 6b4518c7281217d5467623e9b0ab80c27b5e14cc..46f86681574a694d0010033b31d9550574c170fc 100644 (file)
@@ -1,3 +1,7 @@
+2016-04-12  Pedro Alves  <palves@redhat.com>
+
+       * main.c (captured_main): Don't clear the quit flag.
+
 2016-04-12  Pedro Alves  <palves@redhat.com>
 
        * exceptions.c (prepare_to_throw_exception): Don't clear the quit
index 93ed98f11014b2644c09c2bb26bcb53c3c290a53..c149b708bf653488c5b15512346391dfa7aad222 100644 (file)
@@ -505,7 +505,6 @@ captured_main (void *data)
   dirarg = (char **) xmalloc (dirsize * sizeof (*dirarg));
   ndir = 0;
 
-  clear_quit_flag ();
   saved_command_line = (char *) xstrdup ("");
   instream = stdin;