projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf50574
)
fbsd-nat: Avoid a direct write to target_waitstatus::kind.
author
John Baldwin
<jhb@FreeBSD.org>
Mon, 27 Mar 2023 19:51:02 +0000
(12:51 -0700)
committer
John Baldwin
<jhb@FreeBSD.org>
Mon, 27 Mar 2023 19:51:02 +0000
(12:51 -0700)
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>
gdb/fbsd-nat.c
patch
|
blob
|
history
diff --git
a/gdb/fbsd-nat.c
b/gdb/fbsd-nat.c
index 4e48bfa1590160f8a00c24921daf1468ebb657c8..2f5b512fb3397b844b171753a2b58ff4ebb6dac0 100644
(file)
--- 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