diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-04-16 17:36:32 +0200 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-04-24 17:46:36 +0200 |
commit | 7632c6ce2bc013dd0402a2d942f78034fe73fbf9 (patch) | |
tree | 9d429b112e2c9185c30a985b7db17e60cb598fe5 /gdb/inf-ptrace.h | |
parent | 86e887ae1183ded1c4bfba8617e4e19c8dfc8271 (diff) | |
download | gdb-7632c6ce2bc013dd0402a2d942f78034fe73fbf9.zip gdb-7632c6ce2bc013dd0402a2d942f78034fe73fbf9.tar.gz gdb-7632c6ce2bc013dd0402a2d942f78034fe73fbf9.tar.bz2 |
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.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r-- | gdb/inf-ptrace.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index 2178b1b..e2079fa 100644 --- a/gdb/inf-ptrace.h +++ b/gdb/inf-ptrace.h @@ -43,17 +43,6 @@ struct inf_ptrace_target : public inf_child_target void create_inferior (const char *, const std::string &, char **, int) override; -#ifdef PT_GET_PROCESS_STATE - bool follow_fork (bool, bool) override; - - int insert_fork_catchpoint (int) override; - - int remove_fork_catchpoint (int) override; - - void post_startup_inferior (ptid_t) override; - - void post_attach (int) override; -#endif void mourn_inferior () override; |