diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-03-22 12:05:43 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-03-22 12:05:43 -0700 |
commit | c77282d8ba91cf25cf2f08b76702c447e2e74575 (patch) | |
tree | 3f996835a32b4ea67b67532d3ee51ff2999c47cc /gdb/fbsd-nat.h | |
parent | a49ce729c808b5762faf948a34e6159a6d8874de (diff) | |
download | gdb-c77282d8ba91cf25cf2f08b76702c447e2e74575.zip gdb-c77282d8ba91cf25cf2f08b76702c447e2e74575.tar.gz gdb-c77282d8ba91cf25cf2f08b76702c447e2e74575.tar.bz2 |
fbsd-nat: Add a low_new_fork virtual method.
This method can be overridden by architecture-specific targets to
perform additional work when a new child process is forked.
Diffstat (limited to 'gdb/fbsd-nat.h')
-rw-r--r-- | gdb/fbsd-nat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h index 2d9c6e1..2f17be5 100644 --- a/gdb/fbsd-nat.h +++ b/gdb/fbsd-nat.h @@ -109,6 +109,12 @@ public: bool supports_disable_randomization () override; + /* Methods meant to be overridden by arch-specific target + classes. */ + + virtual void low_new_fork (ptid_t parent, pid_t child) + {} + protected: void post_startup_inferior (ptid_t) override; |