mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user