-
Factor out register/unregister_debugged_thread helpers to have a single point where tasks related to preparing/cleaning up ptraced-base thread debugging can be placed. Put all steps under nklock, which is required anyway for manipulating xnthread::state and fixes a lurking race. The timer lock counter can then be converted into a non-atomic variable. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
e0f8d1b2