diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-07-29 13:16:29 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-07-29 13:16:29 -0700 |
commit | 3d3f92f275a0599f00742fbfcfbd0fb5b0d58364 (patch) | |
tree | 884e9ed311adb412aa269d04f956912ae09eb22c /gdb/ui-file.c | |
parent | 9f07c7700101a4a69e4f78a0cfd16403228694ee (diff) | |
download | binutils-3d3f92f275a0599f00742fbfcfbd0fb5b0d58364.zip binutils-3d3f92f275a0599f00742fbfcfbd0fb5b0d58364.tar.gz binutils-3d3f92f275a0599f00742fbfcfbd0fb5b0d58364.tar.bz2 |
obsd-nat: Various fixes to obsd_nat_target::wait.
- Call inf_ptrace_target::wait instead of duplicating the code.
Replace a check for WIFSTOPPED on the returned status from waitpid
by checking for TARGET_WAITKIND_STOPPED in the parsed status as is
done in fbsd_nat_target::wait.
- Don't use inferior_ptid when deciding if a new process is a child vs
parent of the fork. Instead, use find_inferior_pid and assume that
if an inferior already exists, the pid in question is the parent;
otherwise, the pid is the child.
- Don't use inferior_ptid when deciding if the ptid of the process
needs to be updated with an LWP ID, or if this is a new thread.
Instead, use the approach from fbsd-nat which is to check if a ptid
without an LWP exists and if so update the ptid of that thread
instead of adding a new thread.
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions