projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34c9b2b
)
do_target_wait_1: Clear TARGET_WNOHANG if the target isn't async.
author
John Baldwin
<jhb@FreeBSD.org>
Tue, 22 Feb 2022 19:22:14 +0000
(11:22 -0800)
committer
John Baldwin
<jhb@FreeBSD.org>
Tue, 22 Feb 2022 19:22:14 +0000
(11:22 -0800)
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
patch
|
blob
|
history
diff --git
a/gdb/infrun.c
b/gdb/infrun.c
index 5311822fcb847f596ca6b29908c577723632066e..17ec8b27fa4e73a5d95e9897355d206c94602bc7 100644
(file)
--- 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_
can
_async_p ())
+ if (!target_
is
_async_p ())
options &= ~TARGET_WNOHANG;
if (deprecated_target_wait_hook)