This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 14/30] Don't call clear_quit_flag in captured_main
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 18 Mar 2016 19:18:18 +0000
- Subject: [PATCH 14/30] Don't call clear_quit_flag in captured_main
- Authentication-results: sourceware.org; auth=none
- References: <1458328714-4938-1-git-send-email-palves at redhat dot com>
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:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* main.c (captured_main): Don't clear the quit flag.
---
gdb/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gdb/main.c b/gdb/main.c
index 93ed98f..c149b70 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -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;
--
2.5.0