--- - branch: MAIN date: Thu Oct 15 17:37:36 UTC 2020 files: - new: '1.48' old: '1.47' path: src/sys/arch/amd64/amd64/process_machdep.c pathrev: src/sys/arch/amd64/amd64/process_machdep.c@1.48 type: modified - new: '1.95' old: '1.94' path: src/sys/arch/i386/i386/process_machdep.c pathrev: src/sys/arch/i386/i386/process_machdep.c@1.95 type: modified - new: '1.18' old: '1.17' path: src/sys/arch/powerpc/include/ptrace.h pathrev: src/sys/arch/powerpc/include/ptrace.h@1.18 type: modified - new: '1.40' old: '1.39' path: src/sys/arch/powerpc/powerpc/process_machdep.c pathrev: src/sys/arch/powerpc/powerpc/process_machdep.c@1.40 type: modified - new: '1.19' old: '1.18' path: src/sys/arch/sh3/include/ptrace.h pathrev: src/sys/arch/sh3/include/ptrace.h@1.19 type: modified - new: '1.23' old: '1.22' path: src/sys/arch/sh3/sh3/process_machdep.c pathrev: src/sys/arch/sh3/sh3/process_machdep.c@1.23 type: modified - new: '1.84' old: '1.83' path: src/sys/kern/sys_ptrace_common.c pathrev: src/sys/kern/sys_ptrace_common.c@1.84 type: modified - new: '1.71' old: '1.70' path: src/sys/sys/ptrace.h pathrev: src/sys/sys/ptrace.h@1.71 type: modified id: 20201015T173736Z.1cf5f906b88453d8488f4e9a006ce288eaa08c6b log: | Fix the machine-dependent ptrace requests to respect LWP number Fix the machine-dependent ptrace register-related requests (e.g. PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number passed as the data argument. Before this change, these requests did not operate on the requested LWP of a multithreaded program. This change required moving ptrace_update_lwp() out of unit scope, and changing ptrace_machdep_dorequest() function to take a pointer to pointer as the second argument, consistently with ptrace_regs(). I am planning to extend the ATF ptrace() register tests in the future to check for regressions in multithreaded programs, as time permits. Reviewed by kamil. module: src subject: 'CVS commit: src/sys' unixtime: '1602783456' user: mgorny