Make "catch fork" work on systems with PT_GET_PROCESS_STATE
authorMark Kettenis <kettenis@gnu.org>
Wed, 4 Mar 2015 13:22:42 +0000 (14:22 +0100)
committerMark Kettenis <kettenis@gnu.org>
Wed, 4 Mar 2015 13:36:12 +0000 (14:36 +0100)
commite85e8e5effcfa1a1834fdbf899e167da6dccd2cd
tree2f7b717f2a2d751318160e7159b9111abdf2a5b9
parent8ef229f32be156f374b8b5e3c63dba735a81fe55
Make "catch fork" work on systems with PT_GET_PROCESS_STATE

These systems (OpenBSD and HP-UX 10.x) already support follow-fork
including the events needed to for "catch fork".  This just makes
the upper layers realize this.

gdb/
2015-03-04  Mark Kettenis  <kettenis@gnu.org>

        * inf-ptrace.c [PT_GET_PROCESS_STATE]
        (inf_ptrace_insert_fork_catchpoint): New function.
        (inf_ptrace_remove_fork_catchpoint): New function.
        (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
gdb/ChangeLog
gdb/inf-ptrace.c