Move OpenBSD-only functions from inf-ptrace to obsd-nat
authorKamil Rytarowski <n54@gmx.com>
Thu, 16 Apr 2020 15:36:32 +0000 (17:36 +0200)
committerKamil Rytarowski <n54@gmx.com>
Fri, 24 Apr 2020 15:46:36 +0000 (17:46 +0200)
commit7632c6ce2bc013dd0402a2d942f78034fe73fbf9
tree9d429b112e2c9185c30a985b7db17e60cb598fe5
parent86e887ae1183ded1c4bfba8617e4e19c8dfc8271
Move OpenBSD-only functions from inf-ptrace to obsd-nat

All major BSDs implement PT_GET_PROCESS_STATE, but they differ in
details and want to implement follow-fork functionality differently.

gdb/ChangeLog:

* inf-ptrace.h (follow_fork, insert_fork_catchpoint)
(remove_fork_catchpoint, post_startup_inferior)
(post_attach): Move...
* obsd-nat.h (follow_fork, insert_fork_catchpoint)
(remove_fork_catchpoint, post_startup_inferior)
(post_attach): ...here.
* inf-ptrace.c (follow_fork, insert_fork_catchpoint)
(remove_fork_catchpoint, post_startup_inferior)
(post_attach): Move...
* obsd-nat.c (follow_fork, insert_fork_catchpoint)
(remove_fork_catchpoint, post_startup_inferior)
(post_attach): ...here.
gdb/ChangeLog
gdb/inf-ptrace.c
gdb/inf-ptrace.h
gdb/obsd-nat.c
gdb/obsd-nat.h