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.c | |
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.c')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index ba84265..6d76c82 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1380,6 +1380,8 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus, warning (_("Failed to fetch process information")); #endif + low_new_fork (wptid, child); + if (is_vfork) ourstatus->set_vforked (child_ptid); else |