summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2019-10-08 18:02:46 +0000
committerkamil <kamil@NetBSD.org>2019-10-08 18:02:46 +0000
commit3ab8a58864231d5ce0088c4acde5731bbe405fb7 (patch)
treea4abf6de519a347a608c84ac29b9905ec4407c2c /sys/dev
parent0e38da5a5aba10927052582b6ee2254d53dff160 (diff)
Enhance reliability of ptrace(2) in a debuggee with multiple LWPs
Stop competing between threads which one emits event signal quicker and overwriting the signal from another thread. This fixes missed in action signals. NetBSD truss can now report reliably all TRAP_SCE/SCX/etc events without reports of missed ones. his was one of the reasons why debuggee with multiple threads misbehaved under a debugger. This change is v.2 of the previously reverted commit for the same fix. This version contains recovery path that stopps triggering event SIGTRAP for a detached debugger.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions