https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250954
--- Comment #16 from Konstantin Belousov <[email protected]> --- (In reply to Pavel Labath from comment #15) Do you mean that events channel for Linux debugging facility is per-thread ? In FreeBSD, ptrace(2)/waitpid(2) report all process events, with proper qualification when it comes from specific thread. As result, we do not really need pre-notification about new thread to be created. ptrace() produces a stop in the context of new thread before it executes first userspace instruction, informing debugger about lwpid and allowing it to make changes to the thread state before it ever has chance to execute. I suspect that the race that we discussed there either handled somewhat different in Linux, or exists in Linux as well. It is between the event from the context of the new thread, and kernel taking snapshot of the state of the parent thread to set child state. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
