This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 06/14] 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 2762c09..30cef5d 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -96,6 +96,8 @@
 * GDB can now support 'breakpoint always-inserted mode' in 'record'
   target.
 
+* GDB now defaults to async mode for targets that support it.
+
 * 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]