[Bug 250954] ptrace(): weird ordering between inheriting debug registers and reporting a new thread
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Nov 9 12:47:20 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250954
--- Comment #11 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Michał Górny from comment #10)
And again I do not understand what you are complaining about.
We stop target before new thread returns to userspace. This is the moment
where
TDB_BORN or TBD_SCX are checked. So if you are tracing either syscall exits
or forks you get stop with SIGTRAP and pl_flag PL_FLAG_BORN. More, I believe
that pl_lwpid is set to the lwpid of the new thread.
At that stop, you can set whatever registers in the newborn thread.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list