mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
do_target_wait_1: Clear TARGET_WNOHANG if the target isn't async.
Previously, TARGET_WNOHANG was cleared if a target supported async mode even if async mode wasn't currently enabled. This change only permits TARGET_WNOHANG if async mode is enabled.
This commit is contained in:
@ -3627,7 +3627,7 @@ do_target_wait_1 (inferior *inf, ptid_t ptid,
|
|||||||
|
|
||||||
/* We can't ask a non-async target to do a non-blocking wait, so this will be
|
/* We can't ask a non-async target to do a non-blocking wait, so this will be
|
||||||
a blocking wait. */
|
a blocking wait. */
|
||||||
if (!target_can_async_p ())
|
if (!target_is_async_p ())
|
||||||
options &= ~TARGET_WNOHANG;
|
options &= ~TARGET_WNOHANG;
|
||||||
|
|
||||||
if (deprecated_target_wait_hook)
|
if (deprecated_target_wait_hook)
|
||||||
|
Reference in New Issue
Block a user