This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Consolidate code to enable optional FreeBSD native target event reporting.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 20 Jul 2016 15:00:41 -0400
- Subject: [binutils-gdb] Consolidate code to enable optional FreeBSD native target event reporting.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT da95a26cc381c0f092f515ffe108075985c16d7f ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: da95a26cc381c0f092f515ffe108075985c16d7f
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.