Reported by: Michał Górny <mgorny@gentoo.org>
PR: 254661
Details
Details
- Reviewers
emaste jhb - Commits
- rG8223717ce62c: x86: clear %db registers in new process
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Clearing %db registers seems to be the right thing to do for forked process.
What is the opinion about new thread? Should we inherit or clear db state? [Patch currently clears]
Comment Actions
I don't have a strong opinion. Because of the other bug I've reported earlier, in LLDB we have to copy them anyway, so clearing is fine for me.
That said, I haven't tested other arches, they may be affected as well.
Comment Actions
I don't know for sure but I haven't seen any dbreg copying code in the Linux plugin, so I think threads inherit dbregs on Linux.