diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
commit | ca81b5334e074e6c00137dba00154ef1b4489388 (patch) | |
tree | a50ca85ed9cd3aeaca6132b5fc4f934db9091bfc /gdb/fbsd-nat.h | |
parent | 85e8c48c73a5c39a6980f9b2bd16ec96062fc4c3 (diff) | |
download | gdb-ca81b5334e074e6c00137dba00154ef1b4489388.zip gdb-ca81b5334e074e6c00137dba00154ef1b4489388.tar.gz gdb-ca81b5334e074e6c00137dba00154ef1b4489388.tar.bz2 |
inf-ptrace: Support async targets in inf_ptrace_target::wait.
- Handle TARGET_WNOHANG by passing WNOHANG to waitpid and returning
TARGET_WAITKIND_IGNORE if there are no events to report.
- Handle a race in async mode where SIGCHLD might signal the event
pipe for an event that has already been reported. If the event was
the exit of the last child process, waitpid() will fail with ECHILD
rather than returning a pid of 0. For this case, return
TARGET_WAITKIND_NO_RESUMED.
Diffstat (limited to 'gdb/fbsd-nat.h')
0 files changed, 0 insertions, 0 deletions