This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 06/15] Flip to set target-async on by default and NEWS.
[RFC/WIP PATCH v2 01/12] Flip to set target-async on by default
http://sourceware.org/ml/gdb-patches/2011-12/msg00551.html
gdb:
2012-04-12 Pedro Alves <pedro@codesourcery.com>
* target.c: Set target-async on.
2012-04-12 Yao Qi <yao@codesourcery.com>
* NEWS: Use async mode in default.
---
gdb/NEWS | 2 ++
gdb/target.c | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/NEWS b/gdb/NEWS
index 5885d32..12cdff0 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -82,6 +82,8 @@
* Ada support for GDB/MI Variable Objects has been added.
+* GDB now uses async mode in default.
+
* New commands
** "catch load" and "catch unload" can be used to stop when a shared
diff --git a/gdb/target.c b/gdb/target.c
index aa386db..38906c2 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4652,11 +4652,11 @@ maintenance_print_target_stack (char *cmd, int from_tty)
}
/* Controls if async mode is permitted. */
-int target_async_permitted = 0;
+int target_async_permitted = 1;
/* The set command writes to this variable. If the inferior is
executing, linux_nat_async_permitted is *not* updated. */
-static int target_async_permitted_1 = 0;
+static int target_async_permitted_1 = 1;
static void
set_maintenance_target_async_permitted (char *args, int from_tty,
--
1.7.0.4