do_target_wait_1: Clear TARGET_WNOHANG if the target isn't async.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Feb 2022 19:22:14 +0000 (11:22 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Feb 2022 19:22:14 +0000 (11:22 -0800)
commit14b3360508b185087b9376487cfc49152af023d8
treeeafde156ecd0ff0b03bb4139c76bde016b2f4bb0
parent34c9b2b49be0bb0ea3efdc193fc0a8f615775f09
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.
gdb/infrun.c