diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-03-27 12:51:02 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-03-27 12:51:02 -0700 |
commit | b48c2f04091d33d134b627f1b0a57e2d711cb5a2 (patch) | |
tree | 7fb03cb03b87b8798845ca396a01e89f71060c93 /gdb/fbsd-nat.c | |
parent | bf505746af17499b29e791a24ccfc13058ce946d (diff) | |
download | gdb-b48c2f04091d33d134b627f1b0a57e2d711cb5a2.zip gdb-b48c2f04091d33d134b627f1b0a57e2d711cb5a2.tar.gz gdb-b48c2f04091d33d134b627f1b0a57e2d711cb5a2.tar.bz2 |
fbsd-nat: Avoid a direct write to target_waitstatus::kind.
This is in #ifdef'd code for a workaround for FreeBSD versions older
than 11.1 which is why it wasn't caught earlier.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 4e48bfa..2f5b512 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1261,7 +1261,7 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus, wptid = fbsd_next_vfork_done (); if (wptid != null_ptid) { - ourstatus->kind = TARGET_WAITKIND_VFORK_DONE; + ourstatus->set_vfork_done (); return wptid; } #endif |