aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-lang.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-07-16 10:14:08 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2016-07-20 11:02:25 -0700
commitdbaed3853474e7bd824a25bc454a8f2fdd71d2b3 (patch)
treef087b3ed53a1ac0a7ff68096bfef5747ee6f4ea4 /gdb/p-lang.c
parent5fa14c6b9789bad6f91dd21889f7b1a0eb75c6d0 (diff)
downloadgdb-dbaed3853474e7bd824a25bc454a8f2fdd71d2b3.zip
gdb-dbaed3853474e7bd824a25bc454a8f2fdd71d2b3.tar.gz
gdb-dbaed3853474e7bd824a25bc454a8f2fdd71d2b3.tar.bz2
Use a real vfork done event on FreeBSD when available.
FreeBSD 12 recently added a new ptrace event to indicate when the vfork parent resumes after the child process stops sharing the address space. Use this event to report a proper TARGET_WAITKIND_VFORK_DONE rather than faking a vfork done event after a delay. gdb/ChangeLog: * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK" events. (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not defined. (fbsd_add_vfork_done): Likewise. (fbsd_is_vfork_done_pending): Likewise. (fbsd_next_vfork_done): Likewise. (fbsd_resume): Only ignore pending vfork done events if "PTRACE_VFORK" is not defined. (fbsd_wait): Only look for pending vfork done events if "PTRACE_VFORK" is not defined. [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE" events. (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK" is not defined.
Diffstat (limited to 'gdb/p-lang.c')
0 files changed, 0 insertions, 0 deletions