Consolidate code to enable optional FreeBSD native target event reporting.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 15 Jul 2016 21:03:10 +0000 (14:03 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 20 Jul 2016 18:01:08 +0000 (11:01 -0700)
commitda95a26cc381c0f092f515ffe108075985c16d7f
treead4223b76e774b60d1a676582a59a4fdb9810832
parent37fd5ef3ecc58caacd6abb4ace3d8b559e3db53d
Consolidate code to enable optional FreeBSD native target event reporting.

Add a new function to enable optional event reporting for FreeBSD native
targets.  Specifically, use this to enable fork and LWP events.
The bodies of fbsd_enable_follow_fork and fbsd_enable_lwp_events have been
subsumed into the new function.  In addition, use the PT_GET_EVENT_MASK
and PT_EVENT_SET_MASK requests added in FreeBSD 12 when present to enable
these events.

gdb/ChangeLog:

* fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
(fbsd_enable_proc_events): New function.
(fbsd_enable_follow_fork): Remove function.
(fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
(fbsd_post_attach): Likewise.
gdb/ChangeLog
gdb/fbsd-nat.c
This page took 0.035403 seconds and 4 git commands to generate.