mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Update comment in remote_can_async_p
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.
This commit is contained in:
@ -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>
|
2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* linux-nat.c (linux_nat_can_async_p): Update comment.
|
* linux-nat.c (linux_nat_can_async_p): Update comment.
|
||||||
|
@ -13653,8 +13653,9 @@ remote_can_async_p (struct target_ops *ops)
|
|||||||
{
|
{
|
||||||
struct remote_state *rs = get_remote_state ();
|
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)
|
if (!target_async_permitted)
|
||||||
/* We only enable async when the user specifically asks for it. */
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* We're async whenever the serial device is. */
|
/* We're async whenever the serial device is. */
|
||||||
|
Reference in New Issue
Block a user