Update comment in remote_can_async_p
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 12 Jan 2017 16:15:01 +0000 (11:15 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 12 Jan 2017 16:15:02 +0000 (11:15 -0500)
I find this comment counter intuitive, and it probably predates the
always-target-async change.  AFAIK, remote will always be async, unless
the user explicitly prevents it with "maint set target-async off".

gdb/ChangeLog:

* remote.c (remote_can_async_p): Update comment.

gdb/ChangeLog
gdb/remote.c

index 27aa3941a694d6b79f678694a1cce3143ba3bc6c..bf0930fa62f34b67ee326d35ac41b29325239954 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-12  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * remote.c (remote_can_async_p): Update comment.
+
 2017-01-12  Simon Marchi  <simon.marchi@ericsson.com>
 
        * linux-nat.c (linux_nat_can_async_p): Update comment.
index 837b9ee5124e8ac3f4e3a55279adae49c790be19..c73c30aacdf32efcec934f257709abfa29184a58 100644 (file)
@@ -13653,8 +13653,9 @@ remote_can_async_p (struct target_ops *ops)
 {
   struct remote_state *rs = get_remote_state ();
 
+  /* We don't go async if the user has explicitly prevented it with the
+     "maint set target-async" command.  */
   if (!target_async_permitted)
-    /* We only enable async when the user specifically asks for it.  */
     return 0;
 
   /* We're async whenever the serial device is.  */
This page took 0.031735 seconds and 4 git commands to generate.