inf-ptrace: Return an IGNORE event if waitpid() fails.
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)
commit85e8c48c73a5c39a6980f9b2bd16ec96062fc4c3
treee7e787cb532f6eaa6594ef1711ce7bcb0ec9c0d2
parent14b3360508b185087b9376487cfc49152af023d8
inf-ptrace: Return an IGNORE event if waitpid() fails.

Previously this returned a TARGET_WAITKIND_SIGNALLED event for
inferior_ptid.  However, inferior_ptid is invalid during ::wait()
methods after the multi-target changes, so this was triggering an
assertion further up the stack.
gdb/inf-ptrace.c