aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 17ec8b2..5311822 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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
a blocking wait. */
- if (!target_is_async_p ())
+ if (!target_can_async_p ())
options &= ~TARGET_WNOHANG;
if (deprecated_target_wait_hook)