This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Fake VFORK_DONE events on FreeBSD
- From: John Baldwin <jhb at FreeBSD dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 28 Jun 2016 16:00:08 -0700
- Subject: [PATCH 0/3] Fake VFORK_DONE events on FreeBSD
- Authentication-results: sourceware.org; auth=none
The FreeBSD native targets do not report a VFORK_DONE event at
all currently. FreeBSD's ptrace doesn't currently report an event
when the vfork parent resumes, so this fixes the native targets to
report a fake event after a sleep similar to the approach used on
Linux. While here I noticed that I botched the 'detach_fork' support
in the original fork tracing patches, so I fixed that as well.
I am working on adding a new ptrace event to report a real vfork
done event to FreeBSD. Once that is merged to FreeBSD I will post
a patch for gdb to use that when available instead.
John Baldwin (3):
Honor detach-on-fork on FreeBSD.
Move fbsd_resume and related functions below fork following helper
code.
Fake VFORK_DONE events when following only the parent after a vfork.
gdb/ChangeLog | 30 ++++++++
gdb/fbsd-nat.c | 239 +++++++++++++++++++++++++++++++++++++++------------------
2 files changed, 195 insertions(+), 74 deletions(-)
--
2.8.4